useGetStep.ts 42 17 error 2742 The inferred type of 'getStepQueryOptions' cannot be named without a reference to '../../../../../../node_modules/@tanstack/query-core/build/modern/hydration-zFr_7WN8.js'. This is likely not portable. A type annotation is necessary. (lsp)
useGetStep.ts 42 17 error 2742 The inferred type of 'getStepQueryOptions' cannot be named without a reference to '../../../../../../node_modules/@tanstack/react-query/build/modern/types.js'. This is likely not portable. A type annotation is necessary. (lsp)
What version of
kubb
is running?3.05
What platform is your computer?
linux
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)tanstack query: 5.51.23, react: 18,
What steps can reproduce the bug?
Integrate this into an
openapi.json
file:Follow a config similar to this:
Generate.
Open
/src/gen/hooks/stepsHooks/useGetStep.ts
.Observe the following typescript errors:
on this function:
Can be temporarily resolved by adding:
How often does this bug happen?
Every time
What is the expected behavior?
No typescript errors :P
Swagger/OpenAPI file?
linked above
Additional information
No response