A repro repo for withastro/language-tools #584.
The issue has been closed. Like in this case, the unexpected behavior is or was due to a missconfiguration, not an actual bug.
Make sure your astro files are included in your tsconfig.json
:
{
"include": ["src/**/*.ts", "src/**/*.astro"],
}
- Install the VS Code extension
- Clone this repo.
- Install dependencies:
npm i
. - Observe the error in VS Code.
- Run
npx astro check
to see it produces no errors or warnings. - Run to see it builds without errors:
npx astro build && npx astro preview