Closed MetaCrawler closed 2 weeks ago
the only configuration I can get to do anything is having only
plugins: [
pluginOas({ validate: true }),
]
Any plugin that has an output
causes the error.
The error does not exist in v3.0.0
.
Can you try running it with the debug log so you have some logs and maybe also send your package.json
?
https://www.kubb.dev/helpers/cli#debug
I have tried your config with the petstore.yaml and seems to work fine(no errors), not sure what is going on
I think this can be closed. Updated to 3.0.3 and it works now.
Anyway, if you still need the debug log, let me know. Then I will revert to 3.0.1 and do so.
What version of
kubb
is running?3.0.1
What platform is your computer?
Windows + WSL2 (Ubuntu 22.04.1 LTS) + VsCode + Devcontainer typescript-node:1-22
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)What steps can reproduce the bug?
General Info Not sure if I do something wrong or I has made a mistake by reading the migration guide... but pluginOas alone seems to run, but as soon as pluginTs is added in the config I just receive a bunch of errors when trying to run kubb.
Using: node 22.11.0 npm 10.9.0
Reproduction 1) Install named package versions. 2) Use petStore.yaml from the code sandbox. (attached in zip) 3) Use config (attached in zip) 4) kubb generate
reproduce.zip
Error Examples
How often does this bug happen?
Every time
What is the expected behavior?
Types should be generated without error.
Swagger/OpenAPI file?
The same as from the codesandbox example in the docs. (also attached in the above .zip file) https://codesandbox.io/p/devbox/happy-dhawan-jkhmyd?file=%252FpetStore.yaml
Additional information
Thank you for all your work & support. Kubb in general is awesome.