-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
SWC: unknown field noInterop
, expected resolveFully
#2070
Comments
You have to stay to an older version of |
Also having this issue with @swc/core@1.3.89. |
That's normal. The issue is not on |
It would be great if there was a way to pass in SWC options from an ENV VAR or something to workaround those kinds of issues in the future. |
can we expect a fix on this soon? this blocks speeding up cdk apps via swc transpilation, unfortunately :/ https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk/README.md#changing-the-default-typescript-transpiler |
@RomainLanz do you know what version works? |
just checked, @swc/core |
Yes, I am also forcing to You can also use |
I agree that an update to ts-node is the most practical fix, but it kind of looks like swc broke backwards compatibility by throwing an error when it encounters a no-longer-supported option, when it should have silently ignored that option. Why is |
The SWC should have released semver major to prevent breaking all ts-node consumers who use swc. Workaround for me was to use resolutions and overrides in package.json to force downgrade of all transient dependencies of @swc/core until a ts-node can release with the update.
|
downgrade @swc/core requirements due to TypeStrong/ts-node#2070 update config generation
downgrade @swc/core requirements due to TypeStrong/ts-node#2070 update config generation
It looks like #2062 fixes this issue but there was no new release since July. Can you publish a new release to fix it ? |
If anybody doesn't need any specific ts-node features, install the
|
@cspotcode Friendly ping? |
Bump as well! |
It does not work with the following versions either. {
"@swc/core": "^1.3.93",
"ts-node": "^10.9.1"
} |
same here, downgraded |
FYI: The latest @swc/core (at least ^1.3.94) no longer errors out on the unknown fields as the above issue has been resolved via swc-project/swc#8163 🎉 |
Using "@swc/core": "1.3.88", there is error with
noInterop
Probably similar fix as: #2062
Might be related:
resolveFully
and you should remove other fields. swc-project/swc#7979common-js
swc-project/swc#7963The text was updated successfully, but these errors were encountered: