Open tianyingchun opened 3 months ago
can we change .json to .ts exports?
Instead of import json, should we prefer load-json-file instead?
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:
cli-boxes
NODE_NO_WARNINGS=1
env variable Choices for Sindre:
fs
Since all reports/pingbacks so far are related to update-notifier
(which no longer uses the latest version of cli-boxes
) it might be easier to wait it out (a year?)
(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