syampillai / SOCharts

A wrapper around the "echarts" JavaScript library to use it as a Vaadin component.
Apache License 2.0
27 stars 11 forks source link

Invalid import warning since updating to Vaadin 23.3 #12

Closed p-engl closed 1 year ago

p-engl commented 1 year ago

We receive the following warnings in the console at server startup since updating to Vaadin 23.3 (and using Vite):

2023-01-11 16:31:30,433 ERROR: com.vaadin.flow.server.frontend.TaskUpdateImports - Invalid import 'lit' import {property, customElement} from 'lit/decorators.js' in file xyz 2023-01-11 16:31:30,435 ERROR: com.vaadin.flow.server.frontend.TaskUpdateImports - Invalid import 'echarts/dist/echarts.min' export class SOChart extends LitElement {

static get properties() {
    return {
        minw: { type: String },
        maxw: { type: String },
        minh: { type: String },
        maxh: { type: String },
        width: { type: String },
        height: { type: String }
    ' in file xyz

It seems like thie file chart.js is missing a semi colon on line 1 and 3.

syampillai commented 1 year ago

This issue is fixed in the latest version. Thanks for reporting.