vaadin / hilla-crm-tutorial

The Unlicense
21 stars 20 forks source link

PiT 24.2: bad import in `routes.ts` causes compilation errors #52

Closed manolo closed 1 year ago

manolo commented 1 year ago

Documentation indicates that user should import './main-layout.ts'; but extension should be removed, to avoid compilation error

FILE hilla-crm-tutorial/frontend/routes.ts:6:8

     4 | import './views/login/login-view';
     5 | import './views/list/list-view';
   > 6 | import './main-layout.ts';
       |        ^^^^^^^^^^^^^^^^^^
     7 |
     8 | export type ViewRoute = Route & {
     9 |   title?: string;

Screenshot 2023-08-01 at 10 04 26

At the same time it might be fixed warning in duplicated import in login-view.ts

import { LoginFormLoginEvent } from '@vaadin/login/vaadin-login-form.js';
import '@vaadin/login/vaadin-login-form.js';

Screenshot 2023-08-01 at 10 34 16