2023.1.4 & astro plugin 231.9161.14 not working with TS 5.1.6

hey, When I open an astro file in webstorm i get

Corresponding file is not included in tsconfig.json

 out of basic TS/JS. My TypeScript framework in Webstorm is version 5.1.6 that is installed through npm.

My package.json is this:

"name": "app",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"dependencies": {
"@astrojs/tailwind": "^4.0.0",
"astro": "^2.8.1",
"tailwindcss": "^3.3.2"
"devDependencies": {
"@eslint/create-config": "^0.4.5",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.44.0",
"eslint-plugin-astro": "^0.27.2",
"prettier": "^3.0.0",
"prettier-plugin-astro": "^0.11.0",
"typescript": "^5.1.6"

My tsconfig.json is this:

"extends": "astro/tsconfigs/base",
"compilerOptions": {
"verbatimModuleSyntax": true,

I found this issue, https://youtrack.jetbrains.com/issue/WEB-59503
Where a "fix" would be to set Language & Frameworks > TypeScript  to be Bundled, but that is shipped with TS 4.8.4 so then I have issue with TS 5 items such as this:

const btn = this.querySelector('button')!;

Where the is failing.

1 comment

This is indeed https://youtrack.jetbrains.com/issue/WEB-59503, please vote for it to get notified when it's fixed


Please sign in to leave a comment.