-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read properties of undefined (reading 'type') Oas.ts:80:33 #1575
Comments
Reverting just the @kubb/plugin-oas package to 3.5.12 eliminates the error. |
Same as #1561
|
Same error with pluginTs({
enumType: 'literal',
output: {
path: 'types',
barrelType: false,
},
unknownType: 'unknown',
}),
|
Can you add the input with adding |
stdout❯ bun kubb generate --debug > debug.log[internal-api 3:34:07 p.m.] ERROR Build failed https://api.payman.dev/api/v3/api-docs [internal-api 3:34:07 p.m.] ERROR Cannot read properties of undefined (reading 'type')
[internal-api 3:34:07 p.m.] ERROR Cannot read properties of undefined (reading 'type') (plugin: plugin-oas, hook: buildStart) (plugin: plugin-oas, hook: buildStart)
[cause]: Cannot read properties of undefined (reading 'type') (plugin: plugin-oas, hook: buildStart)
|
I also tried |
Here's the repro. https://github.com/RichAyotte/kubb-repro bun generate |
current versions "@kubb/cli": "^2.28.4", `import { defineConfig } from "@kubb/core"; export default defineConfig({ When I upgrade to v3, I encounter the same error. |
What version of
kubb
is running?3.6.0
What kind of platform do you use?
Linux
How does your
kubb.config.ts
config look likeSwagger/OpenAPI file?
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)What steps can reproduce the bug?
How often does this bug happen?
Every time
What is the expected behavior?
No throwing
Additional information
The text was updated successfully, but these errors were encountered: