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

Using @swc/core version 1.3.85 crashes #732

Closed
biro456 opened this issue Sep 19, 2023 · 2 comments · Fixed by #733
Closed

Using @swc/core version 1.3.85 crashes #732

biro456 opened this issue Sep 19, 2023 · 2 comments · Fixed by #733

Comments

@biro456
Copy link

biro456 commented Sep 19, 2023

I'm using Node 20.7.0 and calling my script like this:

node --loader @swc-node/register/esm ./script.js

When running with @swc/core version >=1.3.85 I get this error everytime.

[Error: unknown field `noInterop`, expected `resolveFully` at line 1 column 548] {
  code: 'InvalidArg'
}

If I use <=1.3.84 it works, so I went to @swc/core to investigate, and it seems 1.3.85 added this resolveFully option in several places, but noInterop was not removed.

@kdy1
Copy link
Member

kdy1 commented Sep 24, 2023

noInterop should not be accepted, but it did because the Es6 variant was a unit type.

@Yovach
Copy link

Yovach commented Sep 25, 2023

Do you plan to update swc-node to fix this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants