Try naming your config as webpack.config.babel.js
. You should have babel-register included in the project. Example at react-router-bootstrap.
Webpack relies on interpret internally to make this work.
More Related Contents:
- CORS error even after setting Access-Control-Allow-Origin or other Access-Control-Allow-* headers on client side
- TypeError: MiniCssExtractPlugin is not a constructor
- How to inline CSS in the head tag of a NextJS project?
- Cannot find module ‘webpack/bin/config-yargs’
- Webpack: “there are multiple modules with names that only differ in casing” but modules referenced are identical
- How to use a library from a CDN in a Webpack project in production
- Is it possible to create custom resolver in webpack?
- Module not found: Error: Can’t resolve ‘util’ in webpack
- Webpack build failing with ERR_OSSL_EVP_UNSUPPORTED [duplicate]
- How to include css files in Vue 2
- What is `require.context`?
- How to use variable substitution in Frontend js applications like backend applications?
- What does “The code generator has deoptimised the styling of [some file] as it exceeds the max of “100KB”” mean?
- Multiple html files using webpack
- Getting “Error: `output.path` needs to be an absolute path or `/`”
- using async/await with webpack-simple configuration throwing error: RegeneratorRuntime not defined
- Rules vs Loaders in Webpack – What’s the Difference?
- How “include” and “exclude” works in webpack loader
- Webpack – background images not loading
- Set environment variable for build in Netlify
- Inline JavaScript and CSS with webpack
- Expose jQuery to real Window object with Webpack
- Load new modules dynamically in run-time with Angular CLI & Angular 5
- When should I use brackets with imports
- How to tell webpack dev server to serve index.html for any route
- Uncaught TypeError: fs.readFileSync is not a function
- Avoiding relative paths in Angular CLI
- Webpack & Typescript image import
- Solution: load independently compiled Webpack 2 bundles dynamically [closed]
- How to avoid React loading twice with Webpack when developing