question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Cannot find module './dist/manifest.json'" while "npm run start:prod"

See original GitHub issue
myapp (master) » npm run start:prod                                                                   ~/dev/two/myapp

> mern-starter@2.0.0 start:prod /Volumes/Data/development/dev/two/myapp
> cross-env NODE_ENV=production node index.js

module.js:442
    throw err;
    ^

Error: Cannot find module './dist/manifest.json'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Volumes/Data/development/dev/two/myapp/index.js:6:46)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

There is no dist folder created.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
somuscommented, Jun 21, 2016

My bad. Updated the readme with correct command.

0reactions
stephan281094commented, Jun 21, 2016

@osenvosem No problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Facing issue with "npm run start:prod" as Cannot find module ...
Bug Report Current behavior Error: Cannot find module 'src/entities/user.entity' at Function.Module.
Read more >
ERROR MODULE NOT FOUND whenever I try to run 'npm run ...
But when I remove the .js and tried to access the module node is looking for but it doesn't exist so idk. Error:...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
Why the "Error: cannot find module" Occurs. This error occurs because of the following reasons: you're trying to import an item from a ......
Read more >
Configure Node.js apps - Azure App Service - Microsoft Learn
Learn how to configure a Node.js app in the native Windows instances, or in a pre-built Linux container, in Azure App Service.
Read more >
body-parser - npm
This module provides the following parsers: JSON body parser; Raw body parser; Text body parser; URL-encoded form body parser. Other body ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found