Skip to content

Lit class fields error #110

@DanWebb

Description

@DanWebb

Describe the bug

After installing the NPM library (not in dev) and using a JS component, Lit gives the following error:

@wrap__ngo_evergreen…nt_Icon_Icon.js:767 Uncaught (in promise) Error: The following properties on element evg-icon will not trigger updates as expected because they are set using class fields: variant, label, icon, set. 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.

To Reproduce
Steps to reproduce the behavior:

  1. Install
  2. import js component with props like evg-icon
  3. view console

Expected behavior

I think these should use Lits @property decorator(?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions