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

it doesn't support vue2.7.x #193

Open
1 task
feiying-tf opened this issue Dec 3, 2022 · 2 comments · May be fixed by #215
Open
1 task

it doesn't support vue2.7.x #193

feiying-tf opened this issue Dec 3, 2022 · 2 comments · May be fixed by #215

Comments

@feiying-tf
Copy link

feiying-tf commented Dec 3, 2022

Your Environment

  • Prettier version: ^2.8.0
  • node version : v16.15.1
  • package manager: npm 8.11.0
  • **vue: 2.7.x
  • IDE: VScode

Describe the bug
when save program,vscode tips

["ERROR" - 14:39:32] Error formatting document.
TypeError: Cannot read properties of undefined (reading 'script')

To Reproduce

Expected behavior

support vue2.7.x

Screenshots, code sample, etc

Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)

Error log

Contribute to @trivago/prettier-plugin-sort-imports

  • I'm willing to fix this bug 🥇
@nasermirzaei89
Copy link

Temporarily I used v3.4.0

@nag5000 nag5000 linked a pull request Feb 28, 2023 that will close this issue
@zhengxs2018
Copy link

This works for me

image

image

image

package.json

{
  "private": true,
  "devDependencies": {
    "@trivago/prettier-plugin-sort-imports": "^4.1.1"
  },
  "resolutions": {
    "@trivago/prettier-plugin-sort-imports/@vue/compiler-sfc": "^3.2.47"
  }
}

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

Successfully merging a pull request may close this issue.

3 participants