We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
require('react-dom/server.edge')
1 parent 82f2a06 commit 87138e3Copy full SHA for 87138e3
packages/next/src/build/webpack-config.ts
@@ -1974,6 +1974,14 @@ export default async function getBaseWebpackConfig(
1974
)
1975
),
1976
].filter(Boolean as any as ExcludesFalse),
1977
+ ignoreWarnings: [
1978
+ (warning) => {
1979
+ // require('react-dom/server.edge') is wrapped in try-catch so save to ignore.
1980
+ return warning.message.startsWith(
1981
+ 'Module not found: Error: Package path ./server.edge is not exported from package'
1982
+ )
1983
+ },
1984
+ ],
1985
}
1986
1987
// Support tsconfig and jsconfig baseUrl
0 commit comments