Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 17, 2022
1 parent 2850d54 commit b8a20a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/build/webpack/loaders/next-app-loader.ts
Expand Up @@ -26,7 +26,9 @@ async function createTreeCodeFromPath({
if (i === segments.length - 1) {
const resolvedPagePath = await resolve(pagePath)
// Use '' for segment as it's the page. There can't be a segment called '' so this is the safest way to add it.
tree = `['', {}, {filePath: ${JSON.stringify(resolvedPagePath}, page: () => require(${JSON.stringify(resolvedPagePath})}]`
tree = `['', {}, {filePath: ${JSON.stringify(
resolvedPagePath
)}, page: () => require(${JSON.stringify(resolvedPagePath)}]`
continue
}

Expand Down

0 comments on commit b8a20a8

Please sign in to comment.