Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module parse failed: Unexpected token #56

Open
raman-react opened this issue Dec 13, 2024 · 1 comment
Open

Module parse failed: Unexpected token #56

raman-react opened this issue Dec 13, 2024 · 1 comment
Labels
question Further information is requested

Comments

@raman-react
Copy link

I am getting error while integrating.

Environment
@uploadcare/react-uploader version :1.3.0
Node js version: 14
React version:16.14.0

Screenshot 2024-12-13 at 11 43 17 AM
@raman-react raman-react added the question Further information is requested label Dec 13, 2024
@nd0ut
Copy link
Member

nd0ut commented Dec 13, 2024

Hey @raman-react,

It looks like your bundler doesn't support the nullish coalescing operator (??). How do you bundle your app? Is it create-react-app or something similar?

In any case, you'll need to add a Babel transformer plugin: https://babeljs.io/docs/babel-plugin-transform-nullish-coalescing-operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants