Skip to content

Looks broken for Prettier 3.0? #384

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

Closed
plitokpikin opened this issue Jul 18, 2023 · 1 comment
Closed

Looks broken for Prettier 3.0? #384

plitokpikin opened this issue Jul 18, 2023 · 1 comment

Comments

@plitokpikin
Copy link

Trying to format a .Svelte file using the plugin, but I get:

["ERROR" - 9:47:20 PM] Error formatting document.
["ERROR" - 9:47:20 PM] printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed
Error: printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed
    at printEmbeddedLanguages (file:///C:/git/project/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:17963:11)
    at printAstToDoc (file:///C:/git/project/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:18094:9)
    at async coreFormat (file:///C:/git/project/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:18405:14)
    at async formatWithCursor (file:///C:/git/project/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:18603:14)
    at async Module.format2 (file:///C:/git/project/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:21789:25)

Package version is the latest one:

"plugins": [
    "C:\\git\\project\\node_modules\\.pnpm\\[email protected][email protected][email protected]\\node_modules\\prettier-plugin-svelte\\plugin.js"
  ]
@Conduitry
Copy link
Member

It's not supported yet. #317.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
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

2 participants