-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Support next.js 13 #280
Comments
Also now that next.js 13 has introduced turbopack as the new successor to Webpack i'm wondering if next-transpile-modules will keep able to transpile modules, even because at the moment turbopack is available only on dev mode but i guess in the near future will be the default next.js bundler. |
Hello there, I haven't fully watched Next.js conf, but I roughly saw the new bundler announcement. I should definitely have a look at this, and see if we can access (and edit!) the Turbopack config from Would have been cool to have a heads up from the official team prior to the release though. |
This. |
Thank you @martpie! This is such an awesome package :) |
Hey, just a heads up Next.js 13 has a dedicated option called I think Thanks for maintaining this package for quite some time @martpie, it had quite some usage which is why the built-in option made sense. Another reason is that Next.js 13 changes the compilation of packages/modules quite a bit to support React Server Components. |
Hi Tim! That's awesome to hear, I gotta try this new option, and if it's a perfect replacement, then we should definitely (and happily!) deprecate |
in my case the new
|
Some update: got a lot on my plate for work right now, but I'll be working on that this weekend. Sorry for the wait, we're all excited about Next.js 13 😊 |
This is not super helpful in resolving what you ran into, can you create a reproduction and open an issue on the Next.js repository. |
cf. #281 for wip. |
@Fawwaz-2009 #280 (comment) |
Fixed in |
Side note: app dir is experimental, use with caution! |
Anybody else having issues using hooks in transpiled components in Next 13 + next-transpile-modules? |
Can you open an issue and / or create a reproduction? |
@timneutkens @martpie @here |
@karanshah229 In 13.1, can't share a time yet. We're not planning additional changes to it so should be fine to use and switch over the flag once 13.1 is out. |
@karanshah229 I would recommend switching now. Yes it's experimental, but it's only a build step thing, if it does not work for you you will see it before your app is deployed to prod, and you will likely not run into any runtime issue (unless you use it to make package IE11 compatible, a thing you should NOT do). I have personally tested all recommended setups and they are all working great with |
I believe this doesn't work with Next.js 13 w/ the following config:
I get the following error re Webpack:
The text was updated successfully, but these errors were encountered: