Skip to content

Instantly share code, notes, and snippets.

@diasjuniorr
Created January 3, 2022 21:13
Show Gist options
  • Save diasjuniorr/42b2631c078e945508406b11f19cd7a4 to your computer and use it in GitHub Desktop.
Save diasjuniorr/42b2631c078e945508406b11f19cd7a4 to your computer and use it in GitHub Desktop.
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data
info - Generating static pages (3/3)
> Build error occurred
Error: Cannot find module for page: /
at pageNotFoundError (/Users/junior/projects/news-scraper/node_modules/next/dist/server/require.js:16:17)
at Object.getPagePath (/Users/junior/projects/news-scraper/node_modules/next/dist/server/require.js:39:15)
at /Users/junior/projects/news-scraper/node_modules/next/dist/build/index.js:1002:56
at Span.traceAsyncFn (/Users/junior/projects/news-scraper/node_modules/next/dist/trace/trace.js:74:26)
at moveExportedPage (/Users/junior/projects/news-scraper/node_modules/next/dist/build/index.js:999:82)
at /Users/junior/projects/news-scraper/node_modules/next/dist/build/index.js:1080:31
at async Span.traceAsyncFn (/Users/junior/projects/news-scraper/node_modules/next/dist/trace/trace.js:74:20)
at async /Users/junior/projects/news-scraper/node_modules/next/dist/build/index.js:861:13
at async Span.traceAsyncFn (/Users/junior/projects/news-scraper/node_modules/next/dist/trace/trace.js:74:20)
at async Object.build [as default] (/Users/junior/projects/news-scraper/node_modules/next/dist/build/index.js:82:25) {
code: 'ENOENT'
}
info - Finalizing page optimization .%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment