Skip to content

Error: Cannot find module 'dist/build-manifest.json' #4598

@stramel

Description

@stramel

Bug report

Describe the bug

Running dev environment results in Error: Cannot find module 'dist/build-manifest.json'

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. yarn dev

Expected behavior

Application should start up

System information

  • OS: Mac OS
  • Version of Next.js: 6.0.4-canary.4

Additional context

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions