Error: Cannot find module './server/server'
See original GitHub issueI am testing v1.8 and have created an app (Fullstack, Typescript, ng2, http2), but when I run npm start
, I get the following error. It looks like the path isn’t being rendered with .js
? I’ll look into it.
npm start
> Gen-App@0.0.1 start C:\Users\George\Documents\GitHub\gen-app
> node index
module.js:341
throw err;
^
Error: Cannot find module './server/server'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (C:\Users\George\Documents\GitHub\gen-app\index.js:1:63)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
This happens when a first npm install has crashed for some reason (SIGINT of npm), or that the delay was too long, or...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
How to Fix the "cannot find module" Error · delete the node modules folder by running rm -rf node_modules · delete package.lock.json file...
Read more >How to resolve "Cannot find module" error in Node - Sabe.io
The issue is that Node is unable to find the module that you are trying to import into your Node application. The most...
Read more >Cannot find module 'X' error in Node.js | bobbyhadz
To solve the "Cannot find module" error in Node.js, make sure to install the package from the error message if it's a third-party...
Read more >r/Tdarr - Reddit
Plugin error! Error: Cannot find module '../methods/lib'. Setting up Tdarr for the first time with Docker. I have followed a video and am ......
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 FreeTop 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
Top GitHub Comments
hmm, I deleted all node_modules and did a clean install - all works! Not sure what that was.
Very few things change when you select http/2. The main entry point for the server changes (it’s a different file), and the
tasks/client/watch.js
changes fromhttp
tohttps
. Nothing changes in thepackage.json
.