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

SyntaxError: Unexpected token '.' (image-overlay-editor) #14

Closed
raphkhan opened this issue Jan 19, 2021 · 2 comments
Closed

SyntaxError: Unexpected token '.' (image-overlay-editor) #14

raphkhan opened this issue Jan 19, 2021 · 2 comments
Assignees

Comments

@raphkhan
Copy link

raphkhan commented Jan 19, 2021

I have the following error when trying to use the DataEditor component in my NextJS project. The error tells me there is an unexpected token '.' in a file inside the nodes_modules folder.

Yet, I tried to use this component in a new React project, in order to see if I have the same error, and everything works well.

How can I fix it in my NextJS project?

Thanks for your answer!

Capture d’écran 2021-01-19 à 19 36 18

@jassmith
Copy link
Contributor

That line is

require("react-responsive-carousel/lib/styles/carousel.min.css");

I suspect the file is being tree-shook out. Can you make sure it is properly included in your deployment?

@jassmith jassmith self-assigned this Jan 21, 2021
@jassmith
Copy link
Contributor

Closing as duplicate of #18

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

No branches or pull requests

2 participants