Running dev environment results in Error: Cannot find module 'dist/build-manifest.json'
Steps to reproduce the behavior, please provide code snippets or a repository:
yarn devApplication should start up
Worked correctly in 6.0.4-canary.3. I assume it has to do with centralizing the distDir and re-organizing for next-server. Error seems to be originating from node_moudles/next/dist/server/render#202 which has buildManifest = require((0, _path.join)(distDir, _constants.BUILD_MANIFEST));. Seems like it isn't properly resolving from the root of the project.
@timneutkens
Could you provide an example? I can't reproduce with the hello-world example.
Happens when using custom-server-express
I'm running a custom server, maybe that is the issue? Will try to get a example for you. Sorry
UPDATE: Ah, yeah, that must be the issue.
Fixed! Thanks for the catch, I'll add a test for it soon, interestingly we didn't catch this.
Fixed in https://github.com/zeit/next.js/commit/83b5c138100e7bb7fdf19d23b38a52d60a384427
_Paitently await publish_ 馃憤
It's out
That fixed this issue. I did get this error but didn't seem to affect anything that I immediately noticed.
Error: "value" required in setHeader("Access-Control-Allow-Headers", value)
at validateHeader (_http_outgoing.js:489:11)
at ServerResponse.setHeader (_http_outgoing.js:498:3)
at addCorsSupport (project/node_modules/next/dist/server/utils.js:63:7)
at HotReloader._callee$ (project/node_modules/next/dist/server/hot-reloader.js:97:61)
at tryCatch (project/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (project/node_modules/regenerator-runtime/runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (project/node_modules/regenerator-runtime/runtime.js:114:21)
at step (project/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)
at _next (project/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9)
at project/node_modules/@babel/runtime/helpers/asyncToGenerator.js:34:7
at new Promise (<anonymous>)
at new F (project/node_modules/core-js/library/modules/_export.js:36:28)
at HotReloader.<anonymous> (project/node_modules/@babel/runtime/helpers/asyncToGenerator.js:7:12)
at HotReloader.run (project/node_modules/next/dist/server/hot-reloader.js:192:21)
at Server._callee14$ (project/node_modules/next/dist/server/index.js:770:41)
at tryCatch (project/node_modules/regenerator-runtime/runtime.js:62:40)
I couldn't reproduce, but just to be sure: https://github.com/zeit/next.js/commit/2a1075c122c9b46ed55dad0623d96d3770ee3fee
It was blocking navigation after checking around a bit. Thanks for the fix! 6.0.4-canary.6 fixes all issues in this thread 馃憤