-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language #236
Comments
IIRC they have a new way of making import assertions. Could we use that instead on newer versions of Node.js? |
In my example above, I do not do any assertions explicitly, it's the latest version of the If we can do something to make the warning go away in the |
I've been annoyed by this warning so I tried to build a slim tsx version. For the JSON import I provided a loader to that there is not warning not usage of experimental API: |
The warning was added in nodejs/node#46901 and motivated by nodejs/node#46830 but there is currently no successor to the |
Bug description
When I run
tsx code.ts
I get following output:I expected:
Hello esm-loader-warning-repro!
I've noticed that we already suppress some warnings in here
Should we suppress this type of warning as well?
Reproduction
I have
"type": "module"
in mypackage.json
:code.ts
has following content:I'm using Node 18:
Environment
Can you work on a fix?
The text was updated successfully, but these errors were encountered: