Describe the bug
I got this error when running a webpack build, which finds react-carousel.js in the dependencies.
React-carousel is a dependency of a repo that is being used in my project. It is not being imported into my code.
It is a React project with JS (no typescript). It has a standard webpack config, using babel-loader, but of course ignoring node_modules.
Strangely I have another project that has also react-carousel in it's dependencies which doesn't crash. It also does not crash in a fresh CRA installation.
Error:
Failed to compile.
./node_modules/@brainhubeu/react-carousel/lib/react-carousel.js
Module parse failed: Unexpected token (2:53548)
You may need an appropriate loader to handle this file type.
Describe the bug I got this error when running a webpack build, which finds react-carousel.js in the dependencies. React-carousel is a dependency of a repo that is being used in my project. It is not being imported into my code.
It is a React project with JS (no typescript). It has a standard webpack config, using babel-loader, but of course ignoring node_modules.
Strangely I have another project that has also react-carousel in it's dependencies which doesn't crash. It also does not crash in a fresh CRA installation.
Error:
Babel version: 8.2.2 Webpack rule:
Environment It is an error coming from webpack.
npx envinfo --system --binaries --browsers --npmPackages '@brainhubeu/*'
Any clue what it might be?