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
Decorators Experimental Syntax Error #120
Comments
As @ratierd pointed out, you just need to add |
If anyone still scratching their head over tsx files, adding |
unfortunately, it was still producing errors with my |
If I use a normal Component it works but if I use "router-view" in the app.vue with the vue facing decorator and a vite app. Then the error with Decorators Experimental Syntax pops up again. |
Follows the advice in [this issue](trivago/prettier-plugin-sort-imports#120 (comment)) and adds the decorator plugin to the [importOrderParserPlugins](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorderparserplugins) option
Your Environment
Describe the bug
Installing the Prettier plugin using yarn (
yarn add -D @trivago/prettier-plugin-sort-imports
) formatting of the document starts throwing an error due to experimental syntax due to the use of decorators in Angular:To Reproduce
yarn add -D @trivago/prettier-plugin-sort-imports
Expected behavior
A plugin that supports a variety of different libraries and frameworks should provide the plugin dev dependencies required for use especially when using TypeScript which doesn't require Babel for transpiling.
Screenshots, code sample, etc
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: