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
The following CLI command is throwing an error when run in node 22.
> ts-json-schema-generator --tsconfig tsconfig.json --no-top-ref --path record.ts --type Record --out record.schema.json node_modules/ts-json-schema-generator/dist/ts-json-schema-generator.js:6 import pkg from "./package.json" assert { type: "json" }; ^^^^^^ SyntaxError: Unexpected identifier 'assert' at compileSourceTextModule (node:internal/modules/esm/utils:337:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18) at callTranslator (node:internal/modules/esm/loader:416:14) at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:422:30) at async link (node:internal/modules/esm/module_job:88:21) Node.js v22.0.0
node 22 dropped support for import assertions (nodejs/node#52104) and it should be updated to use with
with
The text was updated successfully, but these errors were encountered:
Can you send a pull request?
Sorry, something went wrong.
@domoritz, #1944
🚀 Issue was released in v2.2.0 🚀
v2.2.0
Successfully merging a pull request may close this issue.
The following CLI command is throwing an error when run in node 22.
node 22 dropped support for import assertions (nodejs/node#52104) and it should be updated to use
with
The text was updated successfully, but these errors were encountered: