zarewoft / lit-element-snippet

lit-element snippet extension
MIT License
1 stars 2 forks source link

Update to lastest lit imports #30

Open romanzy313 opened 3 years ago

romanzy313 commented 3 years ago

Here is the error when using litelehtml:

The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information.

Please update imports to lit, lit/decorators.js, and include css Here is how the imports should look like:

import { customElement } from "lit/decorators.js";
import { LitElement, css, html } from "lit";
@customElement("test-test")
export class TestTestl extends LitElement {
  static styles = css`
    :host {
      display: block;
    }
  `;

  render() {
    return html``;
  }
}
zixsma commented 3 years ago

Hi @romanzy-1612 ,

Thanks for reaching out about this issue and sorry for late reply. I think we need to find the way to support both lit and lit-element.