Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
26.41k
stars
8.93k
forks
source link
window is not defined when running swagger-ui-react #6153
Closed
johnwhitton closed 4 years ago
Environment
"name": "swagger-ui-react", "version": "3.26.2",
"name": "swagger-ui-react", "version": "3.26.2",
Content & configuration
I'm running
Swagger-UI configuration options:
Describe the bug you're encountering
When running
yarn run start
the server is started and the swagger page shows and works.When running 'yarn run build` I get the following error
Gist containing more detailed error is here
To reproduce...
Steps to reproduce the behavior:
Expected behavior
yarn run build
worksAdditional context or thoughts
This seems similar to this issue for swagger-ui and this issue