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
Sadly, newer versions of Node.js (version v17.5.0+) require an additional hoop to jump through to import JSON files.
The error raised is:
[ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "…/node_modules/currency-format/currency-format.json" needs an import assertion of type "json"
More information: https://v8.dev/features/import-assertions
The text was updated successfully, but these errors were encountered:
Ah, my bad, I didn’t see that the main export is the JSON file :)
In which case, make sure you import currency-format like this:
import currencyFormat from 'currency-format' assert {type: 'json'}
Sorry, something went wrong.
No branches or pull requests
Sadly, newer versions of Node.js (version v17.5.0+) require an additional hoop to jump through to import JSON files.
The error raised is:
More information: https://v8.dev/features/import-assertions
The text was updated successfully, but these errors were encountered: