ario ario - 2 months ago 13
Node.js Question

node.js: Cannot find module 'ico'

My website (running on the express framework) suddenly started complaining that it needed a favicon. Upon adding a favicon.ico, it now gives me this error every time someone tries to view a page.

Error: Cannot find module 'ico'
at Function._resolveFilename (module.js:334:11)
...

Answer

Resolved; I have

app.all('/:action', function(req, res){

in my app.js, and it was trying to interpret the favicon.ico as a page.

Comments