My app suddenly gives a blank screen both in dev on local host (and on online version which worked the other day and has no changes made to it).
In error log in terminal:
.../node_modules/send/index.js:838
var type = mime.lookup(path)
^
TypeError: mime.lookup is not a function
at SendStream.type (/Users/myname/Desktop/johannamuseet-app/node_modules/send/index.js:838:19)
at SendStream.send (/Users/myname/Desktop/johannamuseet-app/node_modules/send/index.js:627:8)
at onstat (/Users/myname/Desktop/johannamuseet-app/node_modules/send/index.js:729:10)
There was an error before this, that didn't allow to compile, after some research it seemed I should install @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining so I did. Then it worked to compile but now this next error occurs mentioned above.
I don't know what mime does. Nothing in my package.json indicates that it is a dependecy.
Any ideas would be much appreciated!
