Skip to content
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

Docs: The mdx-as-server-component is not supported on webpack4 #45086

Closed
ktanoooo opened this issue Jan 20, 2023 · 2 comments
Closed

Docs: The mdx-as-server-component is not supported on webpack4 #45086

ktanoooo opened this issue Jan 20, 2023 · 2 comments
Labels
Documentation Related to Next.js' official documentation.

Comments

@ktanoooo
Copy link

ktanoooo commented Jan 20, 2023

What is the improvement or update you wish to see?

The following new feature adds alias when using mdx.
#44651

It is supported for arrays in alias on webpack5, but webpack4 is not.
I think this is confusing. So I think should be added on the documentation about it required webpack5, what do you think about?

Is there any context that might help us understand?

The added alias
https://github.com/vercel/next.js/pull/44651/files#diff-bdcc8e0f4068c2d8bc8f1225c9776f3ec581e79a457abe748a053148925610d1R24-R27

webpack
https://github.com/webpack/enhanced-resolve/releases/tag/v5.0.0-beta.0

add support for arrays in alias

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/advanced-features/using-mdx

@ktanoooo ktanoooo added the Documentation Related to Next.js' official documentation. label Jan 20, 2023
@balazsorban44
Copy link
Member

Webpack 4 has been removed since Next.js 12, see https://nextjs.org/blog/next-12#breaking-changes

The new app directory (RSC) requires Next.js 13

@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2023

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

No branches or pull requests

2 participants