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
This code
import en from "./en.json" with { type: "json" }; import es from "./es.json" with { type: "json" }; import fr from "./fr.json" with { type: "json" };
throws the following error:
import en from "./en.json" with { type: "json" }; ^ SyntaxError: Invalid or unexpected token
https://nodejs.org/api/esm.html#import-attributes
The type: 'json' attribute is mandatory when importing JSON modules.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This code
throws the following error:
https://nodejs.org/api/esm.html#import-attributes
The text was updated successfully, but these errors were encountered: