-
Notifications
You must be signed in to change notification settings - Fork 28k
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
TypeError: Cannot read properties of undefined (reading 'toLowerCase') #57183
Comments
I'm facing this issue after running npm run export in a next.js project. We are using Framer Motion for animation TypeError: Cannot read properties of undefined (reading 'toLowerCase')
|
Hi @veenu840 having the same issue, have you been able to solve it? |
Hi @aphrysof , No it's still not resolved. |
I ran into a similar issue when I upgraded node to 21 from 20.8.1. |
I had to downgrade my node version back to 18 and it worked! |
It's very funny because in our case, the CI/CD that we have didn't go past the error but whenever I tried to go into the Docker container and run it manually it ran without a single issue :') We ended up fixing it by going back to another node version (19.9.0), hope this gets fixed soon! |
With framer-motion I also have the same issue: my setup: |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/2giosangmitom/blog
To Reproduce
Run
npm run build
Current vs. Expected behavior
Node 21:

Node 18:

Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router, Turbopack (--turbo), TypeScript (plugin, built-in types)
Additional context
Seems like it only crashes when using Node 21, I tested with Node 18 and it works.
The text was updated successfully, but these errors were encountered: