You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add ConnectClient import and instantiation to generated endpoints
Fixed TypeScript generation error "Cannot find name 'client'" by adding:
- Import of ConnectClient from @vaadin/hilla-frontend
- Instantiation of client constant in generated endpoint files
The generated endpoint methods use client.call() but the client was
never imported or created, causing TypeScript compilation errors.
Changes:
- Updated ClientPlugin.java to import ConnectClient alongside EndpointRequestInit
- Added `const client = new ConnectClient();` to generated files
- All 10 TypeScriptGeneratorTest tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: packages/java/typescript-generator/src/main/java/com/vaadin/hilla/typescript/codegen/plugins/ClientPlugin.java
0 commit comments