Change
"plugins": [
"@babel/plugin-proposal-class-properties"
]
To
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
This worked for me
More Related Contents:
- Remove console.logs with Webpack & Uglify
- Preset files are not allowed to export objects
- Why am I getting ReferenceError: self is not defined when I import a client-side library?
- babel-loader jsx SyntaxError: Unexpected token [duplicate]
- Error: ‘node-sass’ version 5.0.0 is incompatible with ^4.0.0
- How to resolve “Cannot use import statement outside a module” in jest
- Dynamically Add Images React Webpack
- How to import and export components using React + ES6 + webpack?
- How to tell webpack dev server to serve index.html for any route
- IMAGE: You may need an appropriate loader to handle this file type
- React Js require ‘fs’
- How to use Google fonts in React.js?
- Importing CSS files in Isomorphic React Components
- Requires Babel “7.0.0-0” but was loaded with “6.26.3”
- Nextjs: Unable to load images from static folder
- Value of “this” is incorrect when debugging Babel transpiled React with Chrome Devtools
- webpack can’t find module if file named jsx
- How should I configure create-react-app to serve app from subdirectory?
- How to hash CSS class names in Nextjs?
- How to resolve “Cannot use import statement outside a module” from Jest when running tests?
- Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema
- How to minimize the size of webpack’s bundle?
- combine react build output into single js file
- How to set build .env variables when running create-react-app build script?
- Importing images breaks jest test
- Create-React-App build – “Uncaught SyntaxError: Unexpected token
- How to bundle a React app to a subdirectory on a server?
- import a module from node_modules with babel but failed
- Unable to load images from static folder
- jest: Test suite failed to run, SyntaxError: Unexpected token import