Compilation error with Vaadin 24
javier-godoy opened this issue · 3 comments
javier-godoy commented
ERROR in frontend/generated/jar-resources/fc-applayout/fc-fusion-layout.ts:27:31
TS2307: Cannot find module '@hilla/frontend' or its corresponding type declarations.
25 | import * as menuItemEndpoint from '@vaadin/flow-frontend/generated/MenuEndpoint';
nt/MenuItemDto';
> 27 | import { EndpointError } from '@hilla/frontend';
| ^^^^^^^^^^^^^^^^^
28 | import { Router } from '@vaadin/router';
29 |
30 | @customElement('fc-fusion-layout')
ERROR in frontend/generated/jar-resources/generated/connect-client.default.ts:1:29
TS2307: Cannot find module '@hilla/frontend' or its corresponding type declarations.
> 1 | import {ConnectClient} from '@hilla/frontend';
| ^^^^^^^^^^^^^^^^^
2 | const client = new ConnectClient({prefix: 'connect'});
3 | export default client;
ERROR in frontend/generated/jar-resources/generated/index.ts:20:25
rations.
18 |
19 | const { serverSideRoutes } = new Flow({
> 20 | imports: () => import('../../target/frontend/generated-flow-imports')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | });
22 |
23 | const routes = [
javier-godoy commented
The first error also happens in Vaadin 23.3.0, see #113
flang commented
Add-on works on Vaadin 24, but we'll likely have to release a new version as com.vaadin.flow.component.icon.IronIcon was remove from V24
javier-godoy commented
@flang If the only change for Vaadin 24 is iron-icon -> vaadin-icon, we can target Vaadin 23-24 in the new major version.