Latest Questions tagged Javascript

Browse all latest questions tagged Javascript

47
Votes
Published 19 Jun, 2022
Reactjs - yup addMethod not working in typescript yup version

yup package Issue When a custom method added to yup instance using the addMethod function, It produces the error below TS2339: Property 'title' does not exist on type 'typeof import("node_modules...

4
Votes
Published 16 Apr, 2022
Javascript - TypeError: undefined is not an object (evaluating 'store.getState')

I'm following the Let’s Build: Cryptocurrency Native Mobile App With React Native + Redux tutorial. When I create my store in App.js, the app works fine import { createStore, applyMiddleware, compos...

41
Votes
Published 19 Jun, 2022
Reactjs - Using multiple api calls with set state under UseEffect with one dependency, how to prevent extra re render of child components?

I'm new in React world, I'm struggling to prevent extra rerender of child stateless component, but no luck here is my code import React, { useEffect, useState } from "react"; import Lab from...

2
Votes
Published 23 Apr, 2022
Javascript - After updating to the latest Redux Dev Tools extension I am getting: "Symbol.observable as defined by Redux and Redux DevTools do not match."

For some unknown issue after getting the latest update from the redux dev tools chrome extension I am getting the below warning message: Symbol.observable as defined by Redux and Redux DevTools do no...

42
Votes
Published 22 Apr, 2022
React - ESlint - Error: Must use import to load ES Module

I am currently setting up a boilerplate with React, Typescript, styled components, webpack etc. and I am getting an error when trying to run eslint: Error: Must use import to load ES Module Here is...

75
Votes
Published 09 Jul, 2022
Jquery - Event Listener for Multiple Radio Button Groups

How would you have a dynamic Javascript/JQuery event listener to know which radio button group is clicked and retrieve the value of the checked element. For example if I have two radio button groups h...

72
Votes
Published 29 Aug, 2022
Python - fun clock streaming text with python and flask

Please help. What code would it take to make a simple text clock application with python and flask to demonstrate how flask streaming works? Ideally the app would show text time in place, overwriting...

26
Votes
Published 21 Jun, 2022
Reactjs - How to get the first and last visible date in React Big Calendar?

How to get the first and last visible date in React Big Calendar? This will facilitate database queries to view events. I'm trying to call the onNavigate () function and get start and end using the mo...

1
Votes
Published 16 Apr, 2022
Javascript - Typescript error - 'boolean' is not assignable to type 'number'

Can anybody help me. I am trying to sort strings from array var someArray= ["3a445a_V1", "3", "2a33s454_V1", "1", "3_V2", "2s4a34s3_V2", "234343"]; const [record] = someArray.map(r => parseFloat...

6
Votes
Published 16 Apr, 2022
Javascript - Error: The type cast expression is expected to be wrapped with parenthesis when using get function

Without the curly braces (they aren't parentheses), your code would be invalid JavaScript because you have a property initializer (params: ) outside an object literal, where the parser is expecting an...

59
Votes
Published 15 Jun, 2022
Reactjs - react js Module not found: Can't resolve 'file-saver'

I'm following a tutrotial and all off a sudden i'm getting this error . I've tried all solution and reinstall module. but in other class the same code work this is my code import fileSaver from 'file-...

50
Votes
Published 16 Sep, 2022
Java - How to find Socket.IO server on the same LAN?

I developing an app that connects devices on the same network. Any devices can be the server, I want clients to be able to find the server automatically without users having to enter the IP address o...

45
Votes
Published 16 Apr, 2022
Javascript - How to make side panel in chrome extension?

I have been learning to create a chrome extension. I have tried hello world example and it was working fine. Now I have been trying to add custom code and make some changes in the hello world code acc...

5
Votes
Published 16 Apr, 2022
Javascript - Lodash: is it possible to use map with async functions?

Consider this code const response = await fetch('<my url>'); const responseJson = await response.json(); responseJson = _.sortBy(responseJson, "number"); responseJson[0] = await addEnabledPr...

21
Votes
Published 16 Apr, 2022
Javascript - How to send JSON object as JSON String with Postman?

I want to send a JSON request but problem is I need to send my userPropertiesAsJsonString field as JSON string. How can I send userPropertiesAsJsonString as JSON string? { "User" : { "u...