Error on running $ nodemon ./.server/server.js.
See original GitHub issue[*] Regression (a behavior that used to work and stopped working in a new release)
I get error when i build and run nodemon ./.server/server.js
. the web page is white and it stuck on loading.
$ nodemon ./.server/server.js
[nodemon] 1.14.11
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./.server/server.js`
Express server listening on http://localhost:8000
Unhandled Promise rejection: mime.lookup is not a function ; Zone: <root> ; Task: Promise.then ; Value: TypeError: mime.lookup is not a function
at ServerResponse.contentType (C:\Users\hadirasouli\sample\universal-master\.server\server.js:215399:12)
at ServerResponse.send (C:\Users\hadirasouli\sample\universal-master\.server\server.js:214952:14)
at done (C:\Users\hadirasouli\sample\universal-master\.server\server.js:215811:10)
at C:\Users\hadirasouli\sample\universal-master\.server\server.js:216939:17
at ZoneDelegate.invoke (C:\Users\hadirasouli\sample\universal-master\.server\server.js:163115:26)
at Zone.run (C:\Users\hadirasouli\sample\universal-master\.server\server.js:162865:43)
at C:\Users\hadirasouli\sample\universal-master\.server\server.js:163585:57
at ZoneDelegate.invokeTask (C:\Users\hadirasouli\sample\universal-master\.server\server.js:163148:31)
at Zone.runTask (C:\Users\hadirasouli\sample\universal-master\.server\server.js:162915:47)
at drainMicroTaskQueue (C:\Users\hadirasouli\sample\universal-master\.server\server.js:163322:35) TypeError: mime.lookup is not a function
at ServerResponse.contentType (C:\Users\hadirasouli\sample\universal-master\.server\server.js:215399:12)
at ServerResponse.send (C:\Users\hadirasouli\sample\universal-master\.server\server.js:214952:14)
at done (C:\Users\hadirasouli\sample\universal-master\.server\server.js:215811:10)
at C:\Users\hadirasouli\sample\universal-master\.server\server.js:216939:17
at ZoneDelegate.invoke (C:\Users\hadirasouli\sample\universal-master\.server\server.js:163115:26)
at Zone.run (C:\Users\hadirasouli\sample\universal-master\.server\server.js:162865:43)
at C:\Users\hadirasouli\sample\universal-master\.server\server.js:163585:57
at ZoneDelegate.invokeTask (C:\Users\hadirasouli\sample\universal-master\.server\server.js:163148:31)
at Zone.runTask (C:\Users\hadirasouli\sample\universal-master\.server\server.js:162915:47)
at drainMicroTaskQueue (C:\Users\hadirasouli\sample\universal-master\.server\server.js:163322:35)
Is there any command that i should run before starting server?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
node.js - Error starting server with nodemon - Stack Overflow
So i am running an simple express web app, i install nodemon modules so i dont have to restart the server, but apparently...
Read more >Nodemon causes issue while starting the server. This ... - GitHub
In this case, nodemon server/server.js assuming that you're trying to run this: https://github.com/MUZIK-IWP/MUZIK.
Read more >ndoe-js-cannot-find-module-error-solution or node:internal ...
to run this project i need to hit** server.js file by using npm start or nodemon*. in this case i was open my...
Read more >Get Nodemon to restart AFTER Webpack re-build - Ben Grunfeld
When you run nodemon, it watches everything in the current directory. If it detects any changes, it will restart your node server.
Read more >NPM Errors when starting node.js - Cpanel Node Js Selector
After uploading the files, I cannot run Js Script, getting errors in npm. below is the log ... "server": "nodemon backend/server/server.js",
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
I wonder if it works for the others!!
@vlados thanks for catching the issue 👍 @hadirsa please try to share your package.json with us, maybe we can notice the package.
happy valentines everyone ❤️