-
Notifications
You must be signed in to change notification settings - Fork 125
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
fix: error when used on server side via SVGRenderer #398
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Which environment is this? We have a very loose check for SSR at the top of the lottie file with |
we are using bun with happy-dom as DOM emulation |
@CodyJasonBennett I've revert the change in favor of hardened the |
🎉 This PR is included in version 2.35.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Why
When used on server side or test runner (without any bundling), it cause this kind of error even though I'm using SVGRenderer instead of the default renderer.
What
The problem cause by context2d being accessed eagerly in IIFE. It shouldn't be a problem to defer it at instantiation.
Checklist