Giter Site home page Giter Site logo

Comments (7)

fnep avatar fnep commented on June 27, 2024 1

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

  1. npm exec --yes @hey-api/[email protected]
  2. webpack

to get the error.

from openapi-ts.

mrlubos avatar mrlubos commented on June 27, 2024 1

@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.

fnep avatar fnep commented on June 27, 2024 1

Just updated to 0.48.0 and for me, this solved the issue entirely. Thank you! 🙂

from openapi-ts.

mrlubos avatar mrlubos commented on June 27, 2024

Does this affect all operations?

from openapi-ts.

mrlubos avatar mrlubos commented on June 27, 2024

Would you be able to create a minimal reproducible example on StackBlitz?

from openapi-ts.

harmen-xb avatar harmen-xb commented on June 27, 2024

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.

fnep avatar fnep commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.