We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In case of using import to load the JSON spinner file at:
import
https://github.com/sindresorhus/cli-spinners/blob/main/index.js#L1
you will get a message warning from node like:
(node:74887) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
When writing CLIs with cli-spinners, this is a bad situation - also - just to simply deactivate node warnings is not a right option.
There is a nodejs issue and discussion about that at: nodejs/node#51347
Also they have shown some "solution" but I am not sure if this will fit here or break too much compatibilty?
nodejs/node#51347 (comment)
import { createRequire } from "module"; const PJSON = createRequire(import.meta.url)("./package.json");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In case of using
import
to load the JSON spinner file at:https://github.com/sindresorhus/cli-spinners/blob/main/index.js#L1
you will get a message warning from node like:
(node:74887) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
When writing CLIs with cli-spinners, this is a bad situation - also - just to simply deactivate node warnings is not a right option.
There is a nodejs issue and discussion about that at: nodejs/node#51347
Also they have shown some "solution" but I am not sure if this will fit here or break too much compatibilty?
nodejs/node#51347 (comment)
The text was updated successfully, but these errors were encountered: