Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
If you turn on verbatimModuleSyntax in your tsconfig.json, you start seeing errors from the generated files such as
src/types/dev/hilla/mappedtypes/Pageable.ts:7:16 - error TS1284: An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but 'Pageable' only refers to a type.
7 export default Pageable;
src/crud.ts:1:8 - error TS1484: 'Pageable' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
import Pageable from './types/dev/hilla/mappedtypes/Pageable';
I guess we should switch to .d.ts instead of regular .ts for interfaces since they won't produce any JS code. That'll fix this issue and will be more TS-friendly
Description of the bug
If you turn on
verbatimModuleSyntax
in yourtsconfig.json
, you start seeing errors from the generated files such asMinimal reproducible example
Starter + edit tsconfig.json
Expected behavior
It should work
Versions: