withastro / language-tools

Language tools for Astro
MIT License
242 stars 46 forks source link

🐛 BUG: LS crashes when prettier is not installed #820

Closed kamoshi closed 4 months ago

kamoshi commented 4 months ago

Describe the Bug

When I don't have prettier added to package.json it simply crashes on startup. When I have prettier installed it works correctly (doesn't matter if it's a dev dependency). Not sure if it's important but I use Neovim.

Steps to Reproduce

  1. Open any .astro file in Neovim
  2. The LS tries to start and immediately crashes

image