-
Notifications
You must be signed in to change notification settings - Fork 31
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: Prettier hangs when importing from 'astro/components' #232
Comments
Same here.
'astro' string is what's make prettier break |
Interesting that it hangs! I think this might be related to the code that try to parse the Markdown component's import statement |
Thanks @Princesseuh, but it still hangs with prettier-plugin-astro 0.3.0. Actually importing Markdown was not an issue. It just happens when importing Code oder Debug. |
I cannot reproduce with that version (and there's no code left related to those components) If you're formatting in VS Code, make sure you restarted the editor after upgrading as it caches the plugin on first use! |
All good. Restart helped. It's fixed. 馃檪 Thank you! |
Describe the Bug
The formatting process hangs without any error message if I import Code or Debug from 'astro/components'.
code.astro:
But it works if I import Markdown.
markdown.astro:
Steps to Reproduce
npx prettier code.astro
npx prettier markdown.astro
I am using
The text was updated successfully, but these errors were encountered: