You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the project I am trying to add this to is not an ES module. When prettier is loading the plugin, it is failing with a message similar to:
Invalid configuration file `foo.sql`: require() of ES Module /Users/foobar/dev/helloworld/node_modules/prettier-plugin-embed/dist/index.js from /Users/foobar/dev/helloworld/prettier.config.js not supported.
Is there any way to add cjs output for this library?
The text was updated successfully, but these errors were encountered:
I'm not sure but I think the plugin resolution is handled by Prettier itself, not the project. So as long as you're using Prettier v3, this plugin should work as expected. Can you provide more information on how you're using Prettier and this plugin?
Hi,
Unfortunately, the project I am trying to add this to is not an ES module. When prettier is loading the plugin, it is failing with a message similar to:
Is there any way to add cjs output for this library?
The text was updated successfully, but these errors were encountered: