-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unexpected token 'export' #23
Comments
Could you create a minimal project with this error on CodeSandbox? |
https://codesandbox.io/s/aectionate-jasper-7uhiih?file=/pages/index.tsx here ya go. still getting the error |
You're using an outdated version of Next, you can update it and use the module transpilation option in the config as described here: https://nextjs.org/docs/advanced-features/compiler#module-transpilation Or use the package See https://stackoverflow.com/questions/65936222/next-js-syntaxerror-unexpected-token-export |
it works! thanks! how did you go about finding the answer if you dont mind explaining, thanks |
It's simply trial and error, and a lot of Google searching :D |
I have a next.js typescript project with MUI, and I'm getting this error:
Here's my tsconfig.json:
Not sure what the problem is. ESNext should support the export keyword just fine. it works everywhere else in my project...
The text was updated successfully, but these errors were encountered: