Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Error for valid class field assignment during rendering #104

Open
EthanStandel opened this issue Aug 23, 2021 · 2 comments
Open

Error for valid class field assignment during rendering #104

EthanStandel opened this issue Aug 23, 2021 · 2 comments

Comments

@EthanStandel
Copy link

image

In the actual runtime case, the first two lines aren't necessary and the syntax works as expected without them. However, VSCode sees that as an error claiming that pretty and actual were never defined when they're used during awaken.

@somebee
Copy link
Member

somebee commented Aug 24, 2021

Hmm, this is because we run the typescript server with "suppressExcessPropertyErrors" set to false. Setting it to true will potentially hide actual important errors / typos so I just need to think about striking a decent balance. Maybe we could turn it on for tags only or something :)

@EthanStandel
Copy link
Author

@somebee interesting because if I define self and actual not in the return statement itself, then the properties resolve correctly. The problem with that is that every render then recreates both of those elements (which means my textarea gets rerendered every time the input is modified due to the binding updates).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants