Giter Club home page Giter Club logo

Comments (8)

wesleytodd avatar wesleytodd commented on August 14, 2024

Hey @davellx! Can you post a few more details about your setup? Specifically the npm version you are using?

Am I the only one with this problem ?

I seem to be able to replicate, so no not just you. What I am seeing is it just hang at the line idealTree:express-oapi: timing idealTree:#root Completed in 1599ms, is that exactly what you are seeing? Or do you see something different?

Would it be possible to update de the dependancies for the npm package ?

Yeah I can do that today.

know that swagger & redoc are very useful but wouldn't it be more convenient to let user decide if they want to install one or the other and not forcing to install them along the lib ?

I guess I could be persuaded to have those as optional dependencies. I could see trying to require them and failing gracefully if they are not present. Open to seeing a PR implementing this.

from express-openapi.

wesleytodd avatar wesleytodd commented on August 14, 2024

Yeah I am going to say this looks like an npm bug. The whole process completely hangs after npm http fetch GET 200 https://registry.npmjs.org/@redocly%2fajv 616ms (cache revalidated). I will work on getting this package updated, but also I think I will try and see if I can replicate this on newest npm versions.

from express-openapi.

wesleytodd avatar wesleytodd commented on August 14, 2024

Yeah this is going to be a breaking change to get these updated. I think that is a good thing, but just wanted you to be prepared.

from express-openapi.

wesleytodd avatar wesleytodd commented on August 14, 2024

Ok, everything is updated in 0.2.0. Let me know if that fixes your issues.

from express-openapi.

davellx avatar davellx commented on August 14, 2024

Hello,

Thanks a lot for answering so quickly.
Unfortunately it still doesn't work for me.

On my last failed install it hanged at :
npm http fetch GET 200 https://registry.npmjs.org/oas-resolver 823ms (cache miss)

I still think that the old version of redoc is the main problem for me, but I don't want to install redoc on my main package.json since I don't have any use for this.

PS : the fork @unleash/express-openapi, that removed redoc works with no problem, I'll stick with that for the moment, thanks again for your time.

from express-openapi.

wesleytodd avatar wesleytodd commented on August 14, 2024

Hm interesting. Not sure wh it worked for me then. If you could post the npm and node version you are using that would be awesome. I can probably put together the PR I mentioned to make the UI tools optional, but I wanted to give you the opportunity first since you reported it.

from express-openapi.

davellx avatar davellx commented on August 14, 2024

Here are the npm/node version on my machine :

npm: '9.8.1',
node: '18.17.1',

from express-openapi.

wesleytodd avatar wesleytodd commented on August 14, 2024

Yeah I was able to replicated with those versions but only when installing @wesleytodd/openapi into a new project, not actually installing redoc in this repo. So Here is that PR to make it optional: #41

from express-openapi.

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.