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.

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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
hadirsacommented, Feb 12, 2018

I wonder if it works for the others!!

1reaction
fulls1z3commented, Feb 14, 2018

@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 ❤️

Read more comments on GitHub >

github_iconTop 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 >

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