score:1
it seems to be eslint-loader
build error - please take a look at this. try updating to newest version of eslint-loader and then it should work. if you look at latest version of linter.js
, you'll see that parseresults
method now has if
check before calling foreach
.
score:1
this error from eslint
of react-scripts
, so my solution is disabled eslint
.
- step 1:
yarn add customize-cra react-app-rewired @babel/plugin-proposal-decorators --dev
- step 2: at file
config-overrides.js
:
const { override, disableeslint } = require("customize-cra");
module.exports = override(
disableeslint()
);
- step 3: update script at file
package.json
:
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build"
},
score:1
i was facing the same error. was having a bad time, solving this out.
i tried downgrading to react-scripts: 3.0.1,acc. to some solutions on the web. didn't work.
what worked for me --> in my case, i observed, webpack minified my public\index.html file.
after clearing out the minified index.html and writing the regular index.html ,for react. all the errors/issues went away. and now, everything is working fine.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>document</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
issues i was facing :
- most changes in the code are not being reflected, in the dev server.
- the error startworkingonpendinginteractions was popping up every time the dev server loaded.
- all of this went away , when i started afresh with a new public/index.html file
hope this helps. i love the os community. đź’•
score:3
if you are using react-scripts
version 3.1.2
or any above 3.0.1
, you may need to downgrade to version 3.0.1
as it seems to work fine. see the github issue
Source: stackoverflow.com
Related Query
- React - uncaught TypeError: Cannot read property 'setState' of undefined
- react router v^4.0.0 Uncaught TypeError: Cannot read property 'location' of undefined
- React with ES7: Uncaught TypeError: Cannot read property 'state' of undefined
- React enzyme testing, Cannot read property 'have' of undefined
- Cannot read property 'history' of undefined (useHistory hook of React Router 5)
- React - TypeError: Cannot read property 'props' of undefined
- React Router: Cannot read property 'pathname' of undefined
- React Typescript: Line 0: Parsing error: Cannot read property 'name' of undefined
- Cannot read property '.then' of undefined when testing async action creators with redux and react
- React Tutorial: TypeError: Cannot read property 'props' of undefined
- TypeError: Cannot read property 'javascript' of undefined + terser webpack plugin + react js
- React Material-UI Modal TypeError: Cannot read property 'hasOwnProperty' of undefined
- How to test form submission in React with Jest and Enzyme? Cannot read property 'preventDefault' of undefined
- React propType cannot read property of undefined
- React cannot read property map of undefined
- TypeError: Cannot read property 'prototype' of undefined React Express
- TypeError: Cannot read property 'error' of undefined on React Chrome Extension
- mocha + jsdom + React TypeError: Cannot read property 'addEventListener' of undefined
- React - Cannot read property 'call' of undefined
- Cannot read property 'forEach' of undefined in React
- Cannot read property 'call' of undefined Webpack Bootstrap React
- Uncaught TypeError: Cannot read property 'toUpperCase' of undefined react state item
- Cannot read property 'map' of undefined with react hooks
- Cannot read property 'map' of undefined in React
- React Redux: Cannot read property 'dispatch' of undefined
- React Jest test Cannot read property 'pathname' of undefined
- React Redux Cannot read property 'dispatch' of undefined
- React - Uncaught TypeError: Cannot read property 'func' of undefined
- react / redux - cannot read property "yyy" of undefined
- Cannot read property of undefined when using react hooks
More Query from same tag
- Radio button checked property not called from Button in a List
- material ui app bar not showing - reactjs
- Typescript: API fetch type errors: "Object is possibly 'null'."
- How to test if method of imported class was called in component with jest/enzyme?
- React: Link to a div on another html page
- Promise resolve even in case of error and trigger then next function
- Weather API request cors error
- How to condtionally check two condtions within a JSX expression?
- withRouter vs react-router-dom hooks (useHistory, useLocation, useMatch)
- key value mapping with array object
- ProvidePlugin not working for jquery
- Cannot invoke an expression whose type lacks a call signature. Type 'number | Dispatch<SetStateAction<number>>' has no compatible call signatures
- React js PrivateRoute show hide a dashboard Component based on JSON web token and fetch call
- ReactJS: show modal with loading message during superagent ajax request
- How can I pass a list to a class?
- property appendChild undefined when trying to insert a script tag
- ReactJS : Passing the props without rendering them
- React: can i use [array].map on inside of called function?
- How can I declare a public function in an ES6 class?
- Get cookie with react
- Difference between React.js and jQueryUI widget factory
- "Error: zoid destroyed all components↵" error in reactjs nextjs
- how can i send text from a rich text editor into a sql database?
- Unable to access the history from the props in a component in React?
- How to clear Select / reset Select option into "Select.." / null?
- Having trouble Jest testing ajax modules with axios
- Passing data without props on a functionnal component?
- Is it ok to change directly the state if we don't want to re-render?
- react hooks and redux dispatch never stop
- Input field in not Editing..How to write onchange function for input field in reactjs