New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mime.charsets in Response.js is undefined #5567
Comments
Can you post some example code where it is having this error behavior? |
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: |
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: |
at line 34 in response.js
send.mime appears to be undefined. Any thoughts? |
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. |
Also, the |
It was a versioning issue! :-( What a nightmare! Please consider the issue closed. Thank you for your help! |
Haha, no problem. Glad you got it sorted out! |
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')"
The text was updated successfully, but these errors were encountered: