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
I have been recently struggling with lit where it complained about shadows class fields. While exploring options to address that issue, I found that WTR fails to compile my elements with lit decorators. Simply gives me
"useDefineForClassFields": false has no effect and I still get the shadowing error from lit. Trying to add the accessor keyword results in a different error from wtr
Error while transforming elements.ts: Expected ";" but found "name"
7 |
8 | @property({ type: String })
> 9 | accessor name: string = "Sombeody"
I have been recently struggling with lit where it complained about shadows class fields. While exploring options to address that issue, I found that WTR fails to compile my elements with lit decorators. Simply gives me
Repro on master branch: https://github.com/tminuscode/wtr-decorators
Also failsWorks with legacy decorators: https://github.com/tminuscode/wtr-decorators/tree/legacy-decorators, whentsconfig
path isEither way works fine when compiling to JS first: https://github.com/tminuscode/wtr-decorators/tree/js
This is the behavior with
@web/[email protected]
.The text was updated successfully, but these errors were encountered: