My site (running on an express framework) suddenly started complaining that it needed an icon. After adding favicon.ico now it gives me this error every time someone tries to view the page.
Error: Cannot find module 'ico' at Function._resolveFilename (module.js:334:11) ...
Decided; I have
app.all('/:action', function(req, res){
in my app.js app, and it tried to interpret favicon.ico as a page.
additional error information will be helpful or some code examples.
just to be sure; you will need to add the path in which .ico is the static route for the expression like this:
app.use("/mypathwhereicolies", express.static(__dirname+'/mypathwhereicolies'));
You just need to add the 'GET' handler to '/favico.ico';
app.get('/favico.ico' , function(req , res){/*code*/});
you can just add it there to disable this error, or you can answer with the actual img uri.
Source: https://habr.com/ru/post/1393620/More articles:Django Filter Select_Related - djangoDeploy to tomcat from eclipse via M2eclipse and Maven - eclipseFFMPEG reasonable defaults - ffmpeghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1393618/trying-to-save-javascript-array-of-svg-objects-to-sql&usg=ALkJrhgZFlyvaMtLtkFe_0wR8r-ps06XlwWhen using H2 Auto_server mode, is it possible to associate a socket with a local host? - h2storyboard from the table and its disclosure button - iosAll day and week days are displayed in only one column - twitter-bootstrapMemory Leak Warning on Return - iosError in Cocoa document-based application with document window icon pop-up menu - objective-cSymfony2 basic http auth, works with curling, but not on Android - androidAll Articles