Open aliumair7 opened 1 year ago
Facing the same issue, it would nice if the developers @eidast @laviddichterman @alexbrazier @ezesundayeze could give a workaround for this.
@aliumair7 solved this by updating my react version to 18+. version "17.." react have old version of babel-loader which raises conflicts with this.
Having the same issue. I updated react to v18.2.0 and still didn't fix. @Muhammad406 was that the only change you made?
Same error here. Anyone solve this yet?
@jasondwyer try to locate the package that used babel-loader. Try updating that. I looked into my node modules to see what other packages were using babel-loader and updated those (in my case which was react). try using npm list <package-name>
@Muhammad406 - that solved it for me. I ran npm list babel-loader
which revealed that react-scripts
was the package at fault. I checked my package.json and had version 3.4.1 of react-scripts
, which I upgraded to 5.0.1 and that solved the issue. CC @Keith3679 - Cheers
Describe the bug
Giving error while run my app ./node_modules/react-square-web-payments-sdk/dist/components/divider/divider.es.js 13:15 Module parse failed: Unexpected token (13:15) File was processed with these loaders:
packagejsonm.txt
Your Example Website or App
React
Steps to Reproduce the Bug or Issue
yarn start
Expected behavior
Not Working
Screenshots or Videos
No response
Platform
Windows
Additional context
No response