-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
[Bug] Doesn't work in NextJS #26
Comments
I got the same error as well. Have you been able to get a solution yet? |
I started using the react-parallax-tilt library instead. |
im having the same issue |
Same issue |
Yeah it looks like
Check out the Are The Types Wrong? page for Error message:
|
@jonathandion since it looks like you want to publish CommonJS instead of ESM (unless you're ready to switch your package to ESM), changing the Opened a PR here: |
I was able to successfully implement this using the |
I encountered the error |
I added |
I get the following error on fresh install and importing it in a NextJS page:
SyntaxError: Cannot use import statement outside a module
My import code:
Environment:
"next": "13.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
The text was updated successfully, but these errors were encountered: