Hi there,
I am trying to use Vaadin Designer to create a view, but the boilerplate code it creates has an error. The error is:
Module “lit-element” has no exported member customElement.
I am using Vaadin 24.3.5 with Designer 4.6.25 in IntelliJ.
I can’t figure out what I’m doing wrong.
Anybody have any insight?
import { LitElement, html, css, customElement } from 'lit-element';
@customElement('my-test-view')
export class MyTestView extends LitElement {
static get styles() {
return css`
:host {
display: block;
height: 100%;
}
`;
}
render() {
return html``;
}
// Remove this method to render the contents of this view inside Shadow DOM
createRenderRoot() {
return this;
}
}