Closed goatyeahh closed 1 day ago
works when you add following to next.config.js
experimental: {
mdxRs: true,
},
The above comment is true—you need to be using the experimental flag if you want to use this with --turbo
.
The team has been made aware of this! We should definitely add a better error message in there.
I will be marking this as closed since it does work with the experimental flag.
But it doesn't really allow any of the previous configuration of @next/mdx, does it @samcx? E.g. adding remark/rehype plugins.
But it doesn't really allow any of the previous configuration of @next/mdx, does it @samcx? E.g. adding remark/rehype plugins.
@lauri865 I have not actually tried (it is experimental) yet. Curious if this is what you've experienced
Link to the code that reproduces this issue
https://github.com/goatyeahh/next-mdx-turbo-bug
To Reproduce
Current vs. Expected behavior
⨯ Error: Expected process result to be a module, but it was ignored
Debug info:
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response