Skip to content
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: __reanimatedLoggerConfig is not defined on edge runtime #6880

Conversation

lebleb
Copy link
Contributor

@lebleb lebleb commented Jan 9, 2025

Summary

If you run NextJs application in edge runtime, library throws an error

__reanimatedLoggerConfig is not defined

we needs to declare global or globalThis on every usage in workers on edge runtime.

Collaboration

It was found and made in collaboration with @vault-developer

Test plan

Tested with patch-package and it worked

Copy link
Member

@MatiPl01 MatiPl01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. If this change fixes the issue, you can merge that PR.

Thanks for your contribution!

@piaskowyk piaskowyk added this pull request to the merge queue Jan 9, 2025
Merged via the queue into software-mansion:main with commit 6035538 Jan 9, 2025
@lebleb lebleb deleted the fix-reanimatedLoggerConfig-is-not-defined branch January 9, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants