Kubb doesn't create the files anymore #2155
Unanswered
HelenaVeltri
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
What happens when you add --debug to the kubb generate command? To you see any errors? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! So I have this one problem, well a big one.
I use Kubb since three months ago with this same configuration, but since the past few months, Kubb just stopped functioning.
I will give you some context, the generation from Kubb is triggered via Vite (you star a command like 'npm run dev', and Kubb start generating the files before), using .env data to get and create a file with the Open API data.
My problem is, Kubb create the openapi.json archive, but any of the plugins is started, and just fail.
I pasted the json to some websites to debugging (https://jsonlint.com/ and https://editor.swagger.io/) and they didn't sai anything like and error, the json validator said it's valid, and the swagger editor just said some errors like "Header Parameter named "Accept" is ignored", but when the documentation still working.
to investigate this better i returned Kubb to the manual trigger by 'npm run generate'.
kubb.config.ts -> (./src/app/config/kubb.config.ts )
vite.config.mts -> (./vite.config.mts)
The output from the manual command:


The output via vite with the command 'npm run dev':

Beta Was this translation helpful? Give feedback.
All reactions