I have my app made with Reactjs.
I'm gettint this error when I try to run npm run-script build
:
ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token: name (x) [./react/stores/UserStore.js:52,20]
ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token: name (x) [./react/stores/UserStore.js:52,20]
The error is thrown twice. And the line of the file that is poiting is commented! And now I try without those lines and I'm still getting the same error. But this is the first time that I have this error, don't know why, and i haven't touched that file in weeks...
Any idea?