Skip to content

Commit

Permalink
Update packages/next/build/webpack/plugins/wellknown-errors-plugin/pa…
Browse files Browse the repository at this point in the history
…rseNotFoundError.ts

Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
  • Loading branch information
nkzawa and sokra committed Apr 29, 2022
1 parent bf6bcd2 commit 55eb819
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -114,9 +114,9 @@ export async function getNotFoundError(
importTrace() +
'\nhttps://nextjs.org/docs/messages/module-not-found'

if (await isEdgeRuntimeCompiled(compilation, input.module, config)) {
const moduleName = getUnresolvedModuleFromError(input.message)
if (moduleName) {
const moduleName = getUnresolvedModuleFromError(input.message)
if (moduleName) {
if (await isEdgeRuntimeCompiled(compilation, input.module, config)) {
message +=
'\n\n' +
getNodeBuiltinModuleNotSupportedInEdgeRuntimeMessage(moduleName)
Expand Down

0 comments on commit 55eb819

Please sign in to comment.