-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Regression in @swc-node/register@1.9.1
#772
Comments
I'm having the same issue (well, with a different dependency but the exact same looking error message). Downgrading to 1.8.0 works. |
You can also downgrade to 1.9.0. The issue seems to be in these changes https://github.com/swc-project/swc-node/compare/@swc-node/register@1.9.0...@swc-node/register@1.9.1 |
I can confirm that downgrading to 1.9.0 also resolves this issue for me, thanks @Yovach |
I just spent some time debugging why I'm getting this:
And I think it's the same cause, since downgrading to @swc-node/register@1.9.0 fixed it for me too. If you want to reproduce, you can check out this commit: danieltroger/mpi-15k-controller@2f9bf9f And do I narrowed down the specific exception I'm seeing to yarn not deciding to read the file contents of commonjs modules here: |
I will pay attention to this later today |
I also have same issue as @danieltroger . Reference, action runner: https://github.com/psychobolt/vite-storybook-boilerplate/actions/runs/8972952433/job/24642078580 . Also reverting back to 1.9.0 fixed it as well. |
Not exactly the same error message, but definitely a regression in 1.9.1 $ node --no-warnings=ExperimentalWarning --experimental-loader @swc-node/register/esm scripts/clean.ts
file:///Users/ray.pierce/source/ent-shared-components/node_modules/@swc-node/register/esm/esm.mjs:52
const swcAttribute = context.importAttributes.swc;
^
TypeError: Cannot read properties of undefined (reading 'swc')
at load (file:///Users/ray.pierce/source/ent-shared-components/node_modules/@swc-node/register/esm/esm.mjs:52:51)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:603:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at #createModuleJob (node:internal/modules/esm/loader:480:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) Specifically, this is with Node 18.18.0 and When I bump to Node 18.19.0, everything works fine. If I stay on Node 18.18.0 and downgrade to |
node 18.18.0 does not support importAttributes, and |
Should there be a minimum node version set for |
Hi,
I'm using the
ws
package and I was able to run my project in@swc-node/register@1.9.0
but I've tried to upgrade to@swc-node/register@1.9.1
and I'm getting the following error :And the reproduction https://github.com/Yovach/regression-swc-node-register
Thanks!
The text was updated successfully, but these errors were encountered: