"Cannot find module './dist/manifest.json'" while "npm run start:prod"
See original GitHub issuemyapp (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:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My bad. Updated the readme with correct command.
@osenvosem No problem!