swagger-api / swagger-api/swagger-ui
swagger-ui npm module doesn't compile with Angular 8
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Q&A (please complete the following information)
Browser: n/a
Method of installation: npm
Swagger-UI version: 3.19.5
Swagger/OpenAPI version: n/a
Angular version: 8.2.14
Angular application compiles with an error:

then run npm start and you will get an error
Additional context or thoughts
A buffer@5.2.1 dependency was added because it was
complaining about another mistake. Added, complained about this error
"Uncaught TypeError: Cannot read property 'slice' of undefined"
Anyone with an idea of the problem would be very grateful for the help.
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Angular 8.2.14 application build with swagger-ui 3.19.5 and the added buffer@5.2.1 dependency, then run npm start. Compare the compilation error with the reported “Cannot read property 'slice' of undefined” failure; done means the application compiles and starts without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100