Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mention config requirements in tools → development → typescript #1071

Open
raylu opened this issue Apr 13, 2023 · 0 comments
Open

mention config requirements in tools → development → typescript #1071

raylu opened this issue Apr 13, 2023 · 0 comments

Comments

@raylu
Copy link

raylu commented Apr 13, 2023

https://lit.dev/docs/tools/development/#typescript currently doesn't explain that you need to ensure useDefineForClassFields is off and it's pretty tricky to figure out that your problem is in tsconfig.json when this happens because there are no tsc errors and initial renders are fine (components just don't update)

#479 added the important bits but only to the middle of components → reactive properties

also, https://stackblitz.com/edit/lit-element-typescript-demo is broken in exactly this way! it targets esnext, which defaults useDefineForClassFields to true

possibly related: #583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Triaged
Development

No branches or pull requests

1 participant