-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fix svelte packages being required all the time #327
Conversation
git revert 0ea542c issue with svelte should be solved in 5.1.0 but isnt trivago/prettier-plugin-sort-imports#327 no urge to upgrade adding a GH workflow stage to run build checks in order to catch this sort of issues in CI
I still get this error on 5.1.0 |
Hello, I am using the @trivago/prettier-plugin-sort-imports package version ^5.1.0. However, I am still encountering the following error: |
Same here |
@@ -84,7 +86,7 @@ module.exports = { | |||
preprocess: vuePreprocessor, | |||
}, | |||
svelte: { | |||
...svelteParsers.svelte, | |||
...svelteParsers.parsers.svelte, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only branch of createSvelteParsers where parsers is defined is the successful try case.
This will cause a type error for anyone without prettier-plugin-svelte.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix is coming soon and I should never release anything on a Friday!
This PR tries to solve the issue in v5 that Svelte related packages were required for all project types.