kubb-labs / kubb

The ultimate toolkit for working with APIs.
https://kubb.dev
MIT License
742 stars 67 forks source link

<App/> should be set (plugin: plugin-ts, hook: buildStart) (plugin: plugin-ts, hook: buildStart) #1393

Closed burt202 closed 1 week ago

burt202 commented 1 week ago

What version of kubb is running?

3.0.4

What platform is your computer?

Linux

What version of external packages are you using(@tanstack-query, MSW, React, Vue, ...)

See linked repo below

What steps can reproduce the bug?

Maybe similar to https://github.com/kubb-labs/kubb/issues/1379 but Im getting it when using 3.0.4. For repro, clone repo linked below and npm ci and npm run generate

https://github.com/burt202/kubb-test/tree/master

Basically im trying to upgrade our setup to v3, which takes a yml openapi docs link and spits out generated TS for it. Im expecting the generated/ folder to contain the following on successful run:

index.ts with 'export * from "./types"'
types.ts with geneated types from kubb

Any help would be appreciated as to what im doing wrong. Cheers!

How often does this bug happen?

Every time

What is the expected behavior?

No response

Swagger/OpenAPI file?

No response

Additional information

No response

linear[bot] commented 1 week ago

KUBB-65 <App/> should be set (plugin: plugin-ts, hook: buildStart) (plugin: plugin-ts, hook: buildStart)

stijnvanhulle commented 1 week ago

v3.0.5 will resolve this, having a wider version for our peerDependency @kubb/react resolved the issue.

burt202 commented 1 week ago

Great thanks. 3.0.5 fixed the issue

catesandrew commented 6 days ago

I wasn't even using the @kubb/react but hit this bug. so adding @kubb/react finally fixed it, even if you're using it or not.