You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to incorporate swagger-ui-express into my application. I am able to successfully load the localhost:5000/api-docs page when running locally.
I am using webpack to create a "production" build. When I create the bundle and try to run it locally, I can not access the localhost:5000/api-docs page anymore.
This is the error that is seen in the console:
Uncaught SyntaxError: Unexpected token ':'
swagger-ui-standalone-preset.js:1 Uncaught SyntaxError: Unexpected token ':'
swagger-ui-init.js:140 Uncaught ReferenceError: SwaggerUIBundle is not defined
at window.onload (swagger-ui-init.js:140)
This is where I am serving swagger-ui-express.
And this is where I am defining the swagger.json file.
The text was updated successfully, but these errors were encountered:
how is this considered completed? the work around is like a hack... can this library be rewritten to work for production environments? this runs fine as an express node, but after being webpacked with esbuild i get this same error message
I am creating a Node.js Express API found here.
I am trying to incorporate swagger-ui-express into my application. I am able to successfully load the localhost:5000/api-docs page when running locally.
I am using webpack to create a "production" build. When I create the bundle and try to run it locally, I can not access the localhost:5000/api-docs page anymore.
This is the error that is seen in the console:
This is where I am serving swagger-ui-express.
And this is where I am defining the swagger.json file.
The text was updated successfully, but these errors were encountered: