Skip to content
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

Issue with angular (8.2.0), swagger-ui (3.24.0) integration #33306

Closed
jayanthmay1 opened this issue Oct 21, 2019 · 3 comments
Closed

Issue with angular (8.2.0), swagger-ui (3.24.0) integration #33306

jayanthmay1 opened this issue Oct 21, 2019 · 3 comments
Labels
area: core Issues related to the framework runtime
Milestone

Comments

@jayanthmay1
Copy link

🐞 bug report

Affected Package

Is this a regression?

Description

Unable to integrate swagger-ui (3.24.0) with Angular (8.2.0). The same is working fine with swagger-ui (3.21.0) with Angular (7.2.0)

🔬 Minimal Reproduction

https://stackblitz.com/...

🔥 Exception or Error

_stream_writable.js:57 Uncaught ReferenceError: process is not defined at Object../node_modules/readable-stream/lib/_stream_writable.js (_stream_writable.js:57) at webpack_require (bootstrap:79) at Object../node_modules/readable-stream/readable-browser.js (readable-browser.js:4) at webpack_require (bootstrap:79) at Object../node_modules/stream-browserify/index.js (index.js:28) at webpack_require (bootstrap:79) at Object. (swagger-ui.js:8) at n (swagger-ui.js:1) at Object. (swagger-ui.js:1) at Object. (swagger-ui.js:1)


I believe this issue is related to Polyfills and related to Angular, SwaggerUI versions incompatibility.
I tried with Angular (7.2.0) and SwaggerUI (3.21.0) and it works perfectly fine.
For your reference, here is the link I followed for SwaggerUI (3.21.0) integrate with Angular (7.2.0) https://github.com/agoncal/swagger-ui-angular6

🌍 Your Environment

Angular Version: 8.2.0





Anything else relevant?

@trotyl
Copy link
Contributor

trotyl commented Oct 22, 2019

Duplicate of angular/angular-cli#9827


See angular/angular-cli#9827 (comment) for detailed explanation.

@matsko matsko added the area: core Issues related to the framework runtime label Oct 22, 2019
@ngbot ngbot bot added this to the needsTriage milestone Oct 22, 2019
@IgorMinar
Copy link
Contributor

This seems to be a swagger-ui issue because it appears to depend on the process global directly or indirectly (via its dependencies).

Angular did no polyfill this global in v7, so I'm not sure why upgrading to v8 would affect this, but since you are updating the swagger-ui library as well, I suspect that somehow the dependencies have changed to also include code that depends on process.

I suggest that you contact the swagger-ui authors.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime
Projects
None yet
Development

No branches or pull requests

4 participants