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

Uncaught (in promise) Error using classfield with a new vite lit-ts project #14

Closed
lukaskoeller opened this issue Mar 8, 2022 · 2 comments

Comments

@lukaskoeller
Copy link

Reproducing

When I set up a new vite project using the lit-ts template, and using this component while installing @open-wc/form-control I am getting the following error.

🐛 Reproduced Error Demo

Error

Uncaught (in promise) Error: The following properties on element fd-input will not trigger updates as expected because they are set using class fields: value. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.
    at Input.performUpdate (reactive-element.ts:1275:17)
    at Input.scheduleUpdate (reactive-element.ts:1234:17)
    at Input.__enqueueUpdate (reactive-element.ts:1206:25)

Expected Behavior

The component works just fine as it does in this Demo

Actual Behavior

The app is just showing nothing instead and throws the above mentioned error
Screenshot 2022-03-08 at 22 50 22

@calebdwilliams
Copy link
Collaborator

Hey @lukaskoeller the API has changed a little bit for the mixin but this shouldn't be a problem any more. Can you confirm so we can close this issue?

@calebdwilliams
Copy link
Collaborator

Closing this issue as inactive.

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

No branches or pull requests

2 participants