-
-
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
[WRONG] jsc.experimental.keepImportAssertions
is experimental
, explicitly
#7923
Comments
keepImportAssertions is explixitly marked as an experimental option. Please read docs. |
@kdy1 I understand its experimental, what is the harm of throwing a warning instead of error? |
It gives a good impression to people who don't understand the word |
jsc.experimental.keepImportAttributes
shouldn't throw an error jsc.experimental.keepImportAssertions
is experimental
, explicitly
jsc.experimental.keepImportAssertions
is experimental
, explicitlyjsc.experimental.keepImportAssertions
is experimental
, explicitly
@kdy1 I understand, although I think warning gives the same impression, error is more obstructive action and not as helpful. |
@kdy1 I understand your explanation regarding the option being experimental, yet it appears that I've been advertising for this approach on my blog and expect it is quite commonly used. I don't know how long it will take for |
My previously-working |
Anyone can help with the quickfix for this? |
@josser The fix is already published as I won't add an alias to the deprecated experimental option, though. |
|
|
Thank you @kdy1, I really think supporting the community to transition smoothly should be more important than debating this issue resolution, but as you could see the fix may or may not land soon in ts-node, and I know everyone will appreciate your support and flexibility on this issue. And I want to highlight the same approach in nextjs for example when you configure experimental features and they change or get removed - it shows warning and not error.
I am aware that you work in vercel's team and sharing the principles of supporting the community to transition to better software, I think this solution is good balanced approach in ensuring library users knows what is the issue and not stopping their workflow or stuck in old version because of it. |
I added an alias with #7995 |
Honestly, I'm really against such PR, but I don't want to think/debate about it |
Thank you @kdy1 appreciate it. |
Not sure if it's related, but After updating to "@swc/core": "1.3.88"
I have opened ts-node issue to remove it TypeStrong/ts-node#2070 |
Thanks @kdy1 Curios question is there away to replace ts-node with swc fully with type checking? |
swc doesn't do typechecking, although there is an experimental project to rewrite the TypeScript checker in rust: https://github.com/dudykr/stc (very experimental) |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
The bug is described here: TypeStrong/ts-node#2056
With version 1.3.83, swc renames the experimental configuration option jsc.experimental.keepImportAssertions to jsc.experimental.keepImportAttributes as per #7914
Suggestion to keep other libraries working without so much failure:
The error during running ts-node:
Input code
No response
Config
No response
Playground link
No response
SWC Info output
No response
Expected behavior
The build should be working normally
Actual behavior
No response
Version
1.3.83
Additional context
No response
The text was updated successfully, but these errors were encountered: