-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Panic when using in jest transformer #407
Comments
Note that this problem occurs in 0.7.2 and not in 0.6.34. |
I can't reproduce this. Here's what I tried:
This crash looks to me like there is a mismatch between the version of esbuild's JavaScript code and the version of esbuild's binary executable. I can reproduce the crash if I install esbuild 0.7.2 and then replace If you are in this state then the way you installed esbuild means that it was not installed correctly. How did you install esbuild? The officially supported way to install esbuild is npm, but there are many alternative package managers that people have been using. |
I have just published a new version of esbuild which verifies that the binary and the host code are from the same package version. If that is indeed the problem here, then installing esbuild version 0.7.3 should provide an error message that hopefully gives more information about the problem. |
Apologies, I extracted the minimal case out of a more complex setup, but did not take into account the surrounding setup (using yarn workspaces), so this might have affected it. When I installed 0.7.3, the error completely disappeared, but when I downgraded to 0.7.2 again to see if I could still reproduce it, I did get the new Checking the installed Thanks for the fast response! |
Thanks for the additional information. I think this is actually due to PR #91, which was attempting to fix yarn installs. It appears to have been an incorrect fix. I will try reverting that PR to fix this issue. |
In
jest.config.js
:test/esbuild-transformer.js
(stripped down to a minimal version to reproduce the problem):Result when running
jest
:The text was updated successfully, but these errors were encountered: