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``;
}
}
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: