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
If you use a ESM-only prettier plugin, such us prettier-plugin-tailwindcss, the codegen.mjs will throw the following error:
prettier-plugin-tailwindcss
codegen.mjs
Error [ERR_REQUIRE_ESM]: require() of ES Module .../prettier.config.js from .../node_modules/@gqty/cli/deps.js not supported.
Based on this issue, this plugin can not be loaded with require or import, just put it in the prettier.config.js file like this:
prettier.config.js
const config = { semi: false, singleQuote: true, plugins: ['prettier-plugin-tailwindcss'] } export default config
Currently using: "@gqty/cli": "4.0.0-alpha-7b21563c.0",
"@gqty/cli": "4.0.0-alpha-7b21563c.0",
The text was updated successfully, but these errors were encountered:
We have a thread in Discord about a similar issue, which the op found a workaround. Would you mind heading there to see if it's the same case?
https://discord.com/channels/874477141834739762/1200868810434039939
Sorry, something went wrong.
Please feel free to reopen if the issue persists.
No branches or pull requests
If you use a ESM-only prettier plugin, such us
prettier-plugin-tailwindcss
, thecodegen.mjs
will throw the following error:Error [ERR_REQUIRE_ESM]: require() of ES Module .../prettier.config.js from .../node_modules/@gqty/cli/deps.js not supported.
Based on this issue, this plugin can not be loaded with require or import, just put it in the
prettier.config.js
file like this:Currently using:
"@gqty/cli": "4.0.0-alpha-7b21563c.0",
The text was updated successfully, but these errors were encountered: