Closed BlueEnd07 closed 3 months ago
Astro projects are always TypeScript, answering no to that prompt does nothing apart from outputting a message and using the most relaxed preset.
Is there a more detailed log? Note that the language server still needs an installation of TypeScript in its init param even if not using TypeScript. Your init params should point to either a globally installed version of TypeScript, or if pointing to a local installation, be installed in your project.
O THX for reply I just install TypeScript and its work
Describe the Bug
When I create an astro project with JS, astro ls not working and throwing an error
it's working properly when I create a typescript project
Lspinfo![Screenshot_21-Mar_10-19-40_7818](https://github.com/withastro/language-tools/assets/74140685/7bcfc6ad-2b69-4fb4-8ad8-24f241873839)
plz ask for any other info
Steps to Reproduce
npm create astro@latest
Project name=./astrotest Project= empty Do you plan to write Typescript?? no"no worries......" install dependencies = yes git = yes
CD astrojs nvim(for Neovim) opening index.astro file