Open dillionverma opened 1 year ago
@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 .babelrc.js
similar to our current setup so that next disables SWC on detecting it but I can see atleast the loader of the Tweet component coming. Whereas, in our local dev, we are getting the same error like so :-
We are using the latest version i.e. 13.4.12
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 import.meta
and all files are modules. Did you also add reac-tweet
to transpilePackages
? although I'm not entirely sure if that one works with babel.
Looks like it's something with babel when used in Next.js. The package output of react-tweet does not use
import.meta
and all files are modules. Did you also addreac-tweet
totranspilePackages
? although I'm not entirely sure if that one works with babel.
Yup the transpilePackages
is already added to next.config.js
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!
Getting the following error while running.
package.json: