mime.charsets in Response.js is undefined #6380
Replies: 9 comments
-
Can you post some example code where it is having this error behavior? |
Beta Was this translation helpful? Give feedback.
-
I am trying to run my code in serverless-offline. I do not call the code directly. Here is the stack trace: TypeError: Cannot read properties of undefined (reading 'charsets') Here are my modules: |
Beta Was this translation helpful? Give feedback.
-
I don't know what serverless offline is, but in the stack I see this is the closes thing that looks like user land code: |
Beta Was this translation helpful? Give feedback.
-
at line 34 in response.js
send.mime appears to be undefined. Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/pillarjs/send/blob/master/index.js#L71 I looked at that initially and am not sure how it could be. That is why I would need more to go off of to debug. |
Beta Was this translation helpful? Give feedback.
-
Also, the |
Beta Was this translation helpful? Give feedback.
-
It was a versioning issue! :-( What a nightmare! Please consider the issue closed. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
-
Haha, no problem. Glad you got it sorted out! |
Beta Was this translation helpful? Give feedback.
-
Hey @robertlario any chance you remember the solution to this? I'm currently debugging and suspected a versioning issue as well! Just trying to find the right thing to update. |
Beta Was this translation helpful? Give feedback.
-
Using Express version 4.19.2 in Response.js at line 790 (var charset = mime.charsets.lookup(value.split(';')[0]);) is throwing an exception stating that mime.charset "TypeError: Cannot read properties of undefined (reading 'charsets')"
Beta Was this translation helpful? Give feedback.
All reactions