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

Failed to use swagger in docker #320

Closed
zingdle opened this issue Oct 4, 2019 · 2 comments
Closed

Failed to use swagger in docker #320

zingdle opened this issue Oct 4, 2019 · 2 comments

Comments

@zingdle
Copy link

zingdle commented Oct 4, 2019

Describe the bug
Failed to use swagger in docker

To Reproduce

Chrome console output:

Refused to apply style from 'http://my-ip:9374/node_modules/swagger-ui-dist/swagger-ui.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):14 GET http://my-ip:9374/node_modules/swagger-ui-dist/swagger-ui-bundle.js net::ERR_ABORTED 404 (Not Found)
(index):15 GET http://my-ip:9374/node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js net::ERR_ABORTED 404 (Not Found)
@ceciliacsilva
Copy link

I was having the same problem, I fixed installing the necessary js packages.

# cd api/ui
# npm install

@zingdle
Copy link
Author

zingdle commented Oct 24, 2019

Thanks @ceciliacsilva ! It works like a charm.

In Dockerfile L34 it has done a npm-install. Don't know why we have to do it manually.

@shz117 shz117 closed this as completed Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants