react-compound-timer
react-compound-timer copied to clipboard
ERROR -> ./node_modules/react-compound-timer/dist/react-compound-timer.legacy-esm.js 90:15
I'm using
"react": "^16.13.1", with javascript
It is
"react-compound-timer": "^2.0.4",
and I'm getting the error:
./node_modules/react-compound-timer/dist/react-compound-timer.legacy-esm.js 90:15
Module parse failed: Unexpected token (90:15)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| var STOPPED = "STOPPED";
| var TimeModelState = class {
> onStateChange;
| state = INITED;
| constructor() {
I already deleted the node_modules and installed the dependencies again, but the same error persists.
Is there anything I can do ?
Could you please tell what bundler are you using? webpack, vite? or maybe you are using create-react-app or next.js?
create-react-app
can you try version ^2.0.5, please? if it will not help, i will try to reproduce this error with create-react-app