Skip to content
New issue

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

Support Prettier 2? #668

Open
TenPotatoes opened this issue May 8, 2024 · 0 comments
Open

Support Prettier 2? #668

TenPotatoes opened this issue May 8, 2024 · 0 comments

Comments

@TenPotatoes
Copy link

I'm running prettier-java from a separate package, which doesn't work since Prettier 3 seems to require that plugins are in the same package.

I tried Prettier 2 but got this error on prettier-java version 2.6.0 but not 2.0.0

[error] require() of ES Module ..../node_modules/prettier-plugin-java/dist/index.js from ..../node_modules/prettier/index.js not supported.
[error] Instead change the require of ..../node_modules/prettier-plugin-java/dist/index.js in ..../node_modules/prettier/index.js to a dynamic import() which is available in all CommonJS modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant