You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice the preview renders properly and count increments on clicking.
Side note: There seems to be a problem with Stackblitz's typescript intellisense such that it shows TS errors in the editor for package imports with "moduleResolution": "bundler". This does not seem to be the case when opening the project in VS Code. Changing to "moduleResolution": "nodenext" fixes it in Stackblitz but "bundler" does make more sense for Vite projects.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
The tsconfig changes introduced in #12604 does not work with Lit projects.
In particular, we need
as Lit's currently published decorators are not based on the latest ES spec, and Lit's reactive properties need to not be class fields. https://lit.dev/docs/components/decorators/#decorators-typescript
Reproduction
https://stackblitz.com/edit/vitejs-vite-zhcm7w?file=tsconfig.json
Steps to reproduce
Notice the page does not have content after loading in the preview pane of the repro link above.
System Info
Used Package Manager
npm
Logs
Here's a fixed example: https://stackblitz.com/edit/vitejs-vite-wyyu8w?file=tsconfig.json
Notice the preview renders properly and count increments on clicking.
Side note: There seems to be a problem with Stackblitz's typescript intellisense such that it shows TS errors in the editor for package imports with
"moduleResolution": "bundler"
. This does not seem to be the case when opening the project in VS Code. Changing to"moduleResolution": "nodenext"
fixes it in Stackblitz but"bundler"
does make more sense for Vite projects.Validations
The text was updated successfully, but these errors were encountered: