-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Using --turbo
with next-mdx-remote/rsc
throws ModuleBuildError
#63318
Comments
Update: I published remote-mdx, a fork of IMHO this is still a bug since webpack can handle this package. |
Thank you @devjiwonchoi. Actually using your workaround in the meantime. cc @leerob @jaredpalmer |
Any updates on this, Same issue with - "next": "14.2.0-canary.56", |
Thanks @devjiwonchoi worked for me on "14.2.0-canary.56" |
@devjiwonchoi
|
@Pilaton Could you try this first: https://stackoverflow.com/questions/75831268/next-js-13-server-and-client-components-confusion |
@devjiwonchoi What exactly is this topic supposed to help me with? const components = { Image };
<MDXRemote components={components} source={mdx} /> I haven't had time yet to see if the problem is in |
I get the following error with
|
@bcigdemoglu can you open a new issue with a reproduction as you're mentioning another library it seems. |
@Pilaton @bcigdemoglu Hi, please open an issue at https://github.com/devjiwonchoi/remote-mdx/issues |
Using --turbo with next-mdx-remote/rsc throws ModuleBuildError; vercel/next.js#63318
@bcigdemoglu did some update on it, could you try the latest version? |
@Pilaton the error seems to be with mishandling client / server component, not on nextjs or remote-mdx Open issue w repro to remote-mdx repo, I'll be glad to take a look! |
Using |
@leerob @ForsakenHarmony I may be wrong but since the package I published The error message I received is from the code below when the file is ESM, but the syntax is not ESM. next.js/packages/next-swc/crates/next-core/src/next_server/resolve.rs Lines 416 to 423 in 270a9db
Therefore, I suspected having CommonJS syntax on the ESM module (.js file). Where the output of Tried to fix it but unfortunately I'm not a Rustacean yet... 😅 |
I ran into this issue when upgrading packages today for my blog . The workaround mentioned by @leerob did the trick for me. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/devjiwonchoi/repro-next-turbo-mdx-remote-rsc
To Reproduce
pnpm i
pnpm dev
http://localhost:3000
Current vs. Expected behavior
Current
Expected
It should not throw
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:32:11 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6030 Available memory (MB): 18432 Available CPU cores: 11 Binaries: Node: 18.17.0 npm: 9.6.7 Yarn: 1.22.19 pnpm: 8.15.4 Relevant Packages: next: 14.2.0-canary.23 // Latest available version is detected (14.2.0-canary.23). eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack (--turbo)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This issue has been introduced at
next@14.1.1-canary.64
Related PR: #62235
This works when using
webpack
only (next dev
)PACK-2927
The text was updated successfully, but these errors were encountered: