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
--code-esm
What version of Ajv are you using? Does the issue happen if you use the latest version?
[email protected]
The docs say:
pass the --code-esm (CLI) flag if you want ESM exported code.
But when I do this:
ajv compile -s numeric.json --code-esm -o validate_schema.js
It gives this error:
error: parameter --code-esm is unknown
Indeed, in ajv help compile, there is no option listed for --code.esm. So, the documentation here is incorrect: https://ajv.js.org/standalone.html
ajv help compile
--code.esm
Maybe related to #2209 -- is ESM module generation not working, and so the CLI option has been removed?
The text was updated successfully, but these errors were encountered:
It looks like this option is simply not supported, but I can see a promising PR that adds it in. I will follow up. ajv-validator/ajv-cli#200
This will either be an enhancement or it's just that the docs are wrong.
Sorry, something went wrong.
No branches or pull requests
What version of Ajv are you using? Does the issue happen if you use the latest version?
[email protected]
The docs say:
But when I do this:
It gives this error:
Indeed, in
ajv help compile
, there is no option listed for--code.esm
. So, the documentation here is incorrect: https://ajv.js.org/standalone.htmlMaybe related to #2209 -- is ESM module generation not working, and so the CLI option has been removed?
The text was updated successfully, but these errors were encountered: