react-compound-timer icon indicating copy to clipboard operation
react-compound-timer copied to clipboard

ERROR -> ./node_modules/react-compound-timer/dist/react-compound-timer.legacy-esm.js 90:15

Open jhonnatanBezerra opened this issue 2 years ago • 3 comments

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 ?

jhonnatanBezerra avatar Aug 11 '23 15:08 jhonnatanBezerra

Could you please tell what bundler are you using? webpack, vite? or maybe you are using create-react-app or next.js?

volkov97 avatar Aug 11 '23 17:08 volkov97

create-react-app

jhonnatanBezerra avatar Aug 11 '23 18:08 jhonnatanBezerra

can you try version ^2.0.5, please? if it will not help, i will try to reproduce this error with create-react-app

volkov97 avatar Aug 12 '23 10:08 volkov97