You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\willi\odrive\Google Drive\- KTH\- Kurser\Termin 2\DH2642 Interaktionsprogrammering och dynamiska webben\Projekt\DH2642-Project\node_modules\send\index.js:840
var type = mime.lookup(path)
^
TypeError: mime.lookup is not a function
at SendStream.type (C:\Users\willi\odrive\Google Drive\- KTH\- Kurser\Termin 2\DH2642 Interaktionsprogrammering och dynamiska webben\Projekt\DH2642-Project\node_modules\send\index.js:840:19)
at SendStream.send (C:\Users\willi\odrive\Google Drive\- KTH\- Kurser\Termin 2\DH2642 Interaktionsprogrammering och dynamiska webben\Projekt\DH2642-Project\node_modules\send\index.js:627:8)
at onstat (C:\Users\willi\odrive\Google Drive\- KTH\- Kurser\Termin 2\DH2642 Interaktionsprogrammering och dynamiska webben\Projekt\DH2642-Project\node_modules\send\index.js:729:10)
at FSReqCallback.oncomplete (node:fs:192:5)
Hi @WilliamRagstad you likely have a node_modules folder that is not correct. You can delete it and run npm install again to fix it, and run npm ls to look for any errors about bad dependencies.
To serve static files the type needs to be there, and if you don't want to use the automatic type lookup, if you set the content-type header yourself, this module will not attempt to look up the type.
I get the error:
On this location
send/index.js
Line 838 in de073ed
Please change to:
The text was updated successfully, but these errors were encountered: