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

problem in browser mode? #14

Open
bawa opened this issue Mar 9, 2023 · 0 comments
Open

problem in browser mode? #14

bawa opened this issue Mar 9, 2023 · 0 comments

Comments

@bawa
Copy link

bawa commented Mar 9, 2023

Hi,

Is the plugin expected to work in regular browser mode as well?
When I am trying to use it like this:

const prettier = require("prettier");

const plugins = [require("prettier/parser-babel"), require("prettier-plugin-groovy")];
const formatted = prettier.format(content, { semi: false, parser: "groovy", plugins, });

I get exception:

Error: Couldn't resolve parser "groovy". Parsers must be explicitly added to the standalone bundle.

for other parsers it looks fine, so perhaps I am loading this plugin incorrectly?

thx
Bartek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant