Replies: 1 comment
|
A few things to check:
{
"parserOptions": {
"ecmaVersion": 2021
},
"env": {
"es2021": true
}
}
3.If you're using create-react-app, ensure you're on the latest react-scripts version, as older ESLint configurations may not recognize newer globals.
If the problem only occurs during npm run build, please share:
Your react-scripts version
Your Node.js version
Any custom ESLint configuration (.eslintrc or eslintConfig in package.json) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I use create-react-app to create the app for me, and I have create some js file that use the WeakRef class in my react app.
When I run npm start command, it is running fine and able to compile.
However, when I run npm run build for the project. the eslint compiler failed to compile with error message WeakRef is not defined
Anyone encounter this behavior?
All reactions