-
Notifications
You must be signed in to change notification settings - Fork 24
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 'export' #388
Comments
Same issue here |
same issue |
yep, me too, |
You need to use something like //... next.config.js
const withTM = require('next-transpile-modules')(['react-scroll-section']);
module.exports = withTM(nextConfig); If you don't use next.js, find a way how to transpile modules with your build system |
any updates on this @EmaSuriano ? |
Hello guys, I updated the library to use Vite to compile the project and the typing issue should be fixed. Can you confirm this @bogdancss ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using node version v14.15.4 and NextJS 12.0.7, with react 17.0.2, and when I try to import anything, it gives me that error:
Did anyone manage to solve it?
The text was updated successfully, but these errors were encountered: