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

Use bundlePagesRouterDependencies: true in Next config #9479

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

emmatown
Copy link
Member

https://nextjs.org/docs/pages/api-reference/config/next-config-js/bundlePagesRouterDependencies

This is the behaviour in the App Router and just makes the Pages Router work like that too which fixes #9478 along with the sort of things that esmExternals: 'loose' tried to fix.

Tested in 0.0.0-rc-20250217014122

…uterDependencies: true` in Next config
@emmatown emmatown merged commit b4a44da into main Feb 17, 2025
46 checks passed
@emmatown emmatown deleted the bundle-external-deps-in-pages-router branch February 17, 2025 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ERR_REQUIRE_ESM]: require() of ES Module error on keystone build
1 participant