-
Notifications
You must be signed in to change notification settings - Fork 93
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: Cannot use 'import.meta' outside a module #80
Comments
@dillionverma Can you provide a reproduction 🙏 |
@lfades Hitting the same limitation. SWC is disabled for our project because we rely on babel for a library. I tried to create a reproduction online but couldn't. This is what I was trying -> https://codesandbox.io/p/sandbox/angry-robinson-sk8mrv?file=%2Fpackage.json%3A22%2C36. Basically just added a We are using the latest version i.e. Any clue as to what might be happening here ? |
Looks like it's something with babel when used in Next.js. The package output of react-tweet does not use |
Yup the |
Getting this issue as well. |
Hey everyone! I'm also getting this issue, does anyone have an ideia why this is happening? |
So I resolved this for myself by using app router instead (Nextjs 13). Not a feasible solution for everyone but just wanted to let people know |
Hey, thanks for the feedback! |
I solved the problem by adding
to my package.json. |
Run into similar issue like this: vercel/react-tweet#80 solved by adding ``` "resolutions": { "@babel/runtime": "^7.24.6" }, ``` Explained in this [issue](vercel/next.js#35110 (comment))
Getting the following error while running.
package.json:
The text was updated successfully, but these errors were encountered: