Open lucivaldo opened 2 weeks ago
The docs on Kubb were redirecting to the alpha version(v3) which makes a part of your deps being redirected to v3 instead of the stable version(v2). Best to update your package.json again with the following(see ^2.25.1):
{ "name": "my-project-next", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@kubb/cli": "^2.25.1", "@kubb/core": "^2.25.1", "@kubb/plugin-oas": "^2.25.1", "@kubb/swagger-tanstack-query": "^2.25.1", "@kubb/swagger-ts": "^2.25.1", "next": "14.2.6", "react": "^18", "react-dom": "^18" }, "devDependencies": { "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "14.2.6", "typescript": "^5" } }
What version of
kubb
is running?2.25.1
What platform is your computer?
Linux
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...){ "name": "my-project-next", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@kubb/cli": "^2.25.1", "@kubb/core": "^2.25.1", "@kubb/plugin-oas": "^3.0.0-alpha.4", "@kubb/plugin-tanstack-query": "^3.0.0-alpha.4", "@kubb/plugin-ts": "^3.0.0-alpha.4", "next": "14.2.6", "react": "^18", "react-dom": "^18" }, "devDependencies": { "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "14.2.6", "typescript": "^5" } }
What steps can reproduce the bug?
npm i @kubb/cli @kubb/core @kubb/plugin-oas @kubb/plugin-tanstack-query @kubb/plugin-ts
kubb.config.ts
at the root of the project with the content:export default defineConfig({ root: '.', input: { path: './.tmp/myproject-swagger-api.json', }, output: { path: './src/gen', clean: true, }, plugins: [ pluginOas({}), pluginTs({}), pluginTanstackQuery({}), ], })
How often does this bug happen?
Every time
What is the expected behavior?
Have the code generated
Swagger/OpenAPI file?
No response
Additional information
No response