Comments (7)
Does this affect all operations?
Not sure if I get the question right. It is an error during compile time. Actually, I assume in practice the code will work.
create a minimal reproducible example on StackBlitz
Im new to StackBlitz but i gave it a try. I hope it works for you.
-> https://stackblitz.com/edit/webpack-webpack-js-org-maeyov?file=package.json
I used
npm exec --yes @hey-api/[email protected]
webpack
to get the error.
from openapi-ts.
@fnep this will be fixed in the next release, but I suspect it won't solve all your issues. I tried with your example and after fixing this issue, I was getting a weird Webpack error failing to build the services.gen.ts
file if I understand it correctly. I believe this might be something to do with the Webpack config itself, but open a new issue if you find out more and think something needs to be fixed in this package.
from openapi-ts.
Just updated to 0.48.0 and for me, this solved the issue entirely. Thank you! 🙂
from openapi-ts.
Does this affect all operations?
from openapi-ts.
Would you be able to create a minimal reproducible example on StackBlitz?
from openapi-ts.
I had the same issue. I think it's related to the typescript version you use. With typescript 4 I get the same error. With typescript ^5.00 it works for me.
from openapi-ts.
I'm on typescript 5.3.3 in my project, and the StackBlitz example above is on 5.5.2.
from openapi-ts.
Related Issues (20)
- Support microsoft office Content-Type as binary HOT 3
- CancelablePromise type does not work with react suspense HOT 5
- Default content-type of application/json applied to requests even when no body HOT 2
- @hey-api/client-fetch does not really `throw` where it should HOT 4
- Object is possibly undefined this.httpRequest HOT 8
- @hey-api/client-fetch: Error is unknown when using default HOT 3
- @hey-api/client-fetch: TS type RequestResult is not exported
- Option for config filename
- Using Operation object with the methodNameGenarator HOT 1
- Transform generation fails if route has multiple success responses HOT 8
- Setting user-agent HOT 5
- Fetch Response Interceptor Does Not Intercept 500s HOT 5
- incorrect type generated when combining oneOf with properties HOT 1
- @hey-api/client-fetch missing CancelablePromise, how do I abort/cancel an in progress call?
- FormData/RequestBody not handled correctly with the standalone clients
- Add this project to OpenAPi Tools HOT 3
- Ability to customize service operation parameter name HOT 2
- Order of imports HOT 2
- OpenAPI parameter name of only an underscore results in missing parameter name in services.gen.ts and malformed type definition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-ts.