profile
viewpoint

Ask questionsError: Cannot find module '.next\server\pages-manifest.json'

Bug report

Describe the bug

When starting in dev mode, this error occurs when I try to navigate to the page in the browser

Screenshots

{ Error: Cannot find module 'C:\core\.next\server\pages-manifest.json'
> Building page: /_error
 WAIT      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
Compiling...15:26:08    at Function.Module._load (internal/modules/cjs/loader.js:535:25)


    at Module.require (internal/modules/cjs/loader.js:663:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at getPagePath (C:\core\node_modules\next-server\dist\server\require.js:14:27)
    at Object.requirePage (C:\core\node_modules\next-server\dist\server\require.js:30:22)
    at Object.loadComponents (C:\core\node_modules\next-server\dist\server\load-components.js:15:34)
    at DevServer.renderToHTMLWithComponents (C:\core\node_modules\next-server\dist\server\next-server.js:196:48)
    at DevServer.renderToHTML (C:\core\node_modules\next-server\dist\server\next-server.js:202:37)
    at DevServer.renderToHTML (C:\core\node_modules\next\dist\server\next-dev-server.js:101:22)
    at processTicksAndRejections (internal/process/next_tick.js:81:5) code: 'MODULE_NOT_FOUND' }

System information

  • OS: [Windows 10 ]
  • Browser [chrome]
  • Version of Next.js: [ 8.0.1]
zeit/next.js

Answer questions elisechant

My issue was that I was running a PostCSS step as a part of my dev run script:

"dev:css": "yarn watch:css & next",
"watch:css": "postcss ./styles/index.tailwind.css -o components/.utilities.css -w",

I debugged by deploying another project and porting across my current project to it in chunks.

Agree that the error message is not helpful and could be improved.

useful!
source:https://uonfu.com/
Github User Rank List