-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Using Node v21 not supported: breaks on typeof navigator check #3047
Comments
any updates? |
A quick workaround is disabling the Navigator API in Node v21 with |
this bug is literally keeping me up at night, so annoying, please fix |
+1 I've also experienced this crash |
This was the solution to We added this with a temporary environment variable
🙇 thanks @joeduncan |
Tell us about your environment
Node v21.2.0
Browser and Browser Version:
n/a
After Effects Version:
n/a
What did you do? Please explain the steps you took before you encountered the problem.
I'm running
remix serve
command which starts my web application's runtime.What did you expect to happen?
I expected the lottie-web code not to rely on
typeof navigator
to determine environmentWhat actually happened? Please include as much relevant detail as possible.
The code breaks because
lottie.js
checks fortypeof navigator
. This won't work anymore with Node.js v21+, because it's implementednavigator
API. A discussion about other problems with it here.The are many solutions options; one would be to find a more universal way to distinguish between environments, two - to check for
document
. 🙇🏻The text was updated successfully, but these errors were encountered: