-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Edge Runtime Incompatibility #31
Comments
(linking to inspect-js/is-generator-function#44) |
I've published |
Hey @ljharb! I just tested the fix and it did it! |
Awesome! Yep, I'm planning to do that as well, and I'll also update a number of other deeply-depended-on packages to use them too. |
@ljharb Fantastic! Thanks again! |
Hello @ljharb!
First, thanks for all the hard work on your libraries.
Our NextJS builds are failing with the following error since our last dependencies upgrade:
After hours of investigation, it led us to this repository and is-generator-function. Those two are using
Function('return async function () {}')();
which is considered dynamic code by the compiler.We are not using these two libraries directly, but instead use
traverse
which indirectly relies on those two libraries. And it's likely that in the most recent version oftraverse
(or of one of its dependencies),is-async-function
andis-generator-function
have been introduced as dependencies, so breaking our builds.Is there an easy way for you to remove these "dynamic code" parts to unlock edge runtime support? Or should we explore other solutions?
The text was updated successfully, but these errors were encountered: