IBM / pwa-lit-template

A template for building Progressive Web Applications using Lit and Vaadin Router.

Home Page:https://pwa-lit-template.mybluemix.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Lit decorators doesn't work after the build step

abdonrd opened this issue · comments

Describe the bug

Right now, when build the project (npm run build), the output doesn't work.

Screenshot 2021-06-01 at 15 25 43

Seems like the this.main is undefined:

firstUpdated() {
attachRouter(this.main);
}

From the @query decorator:

@query('main')
private main!: HTMLElement;

To reproduce

Just build and run the project.

Expected behavior

Working as always.