-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 while use node 20+ #11
Comments
can we change .json to .ts exports? |
Instead of import json, should we prefer load-json-file instead? |
When using Node 20, there might be an error popping up regarding importing JSON. See sindresorhus/cli-boxes#11
This came via the in-range update of the `update-notifier` package from v7.1.0 to v7.2.0. Root cause: sindresorhus/cli-boxes#11
This came via the in-range update of the `update-notifier` package from v7.1.0 to v7.2.0. Root cause: sindresorhus/cli-boxes#11
Anyone reaching this issue via update-notifier can just remove it and reinstall it to fix it. The dependency was downgraded in boxen: |
As of Node 22.9.0, this is still experimental: https://nodejs.org/api/esm.html#json-modules Choices for users who want to avoid the warning:
Choices for Sindre:
Since all reports/pingbacks so far are related to |
(node:60053) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
node : v20.12.2
The text was updated successfully, but these errors were encountered: