Closed fpagnoux closed 7 years ago
This issue seems to describe the same problem, but the suggested fix, using swagger-ui-dist
, doesn't work as we get an error Error: only one instance of babel-polyfill is allowed
.
Hey @fpagnoux! We merged https://github.com/swagger-api/swagger-ui/pull/2959 yesterday, so our upcoming Swagger-UI release should resolve your babel-polyfill problem.
@fpagnoux who is this benefiting to? 🤔
Nice, thanks @shockey! 😃
Thanks 🙂 !
@fpagnoux who is this benefiting to? 🤔
This would have resolved issues encountered earlier, but as upgrading to webpack 2 didn't work, we found an alternative. I'm closing this PR, to be continued if one day we do need to upgrade.
Problem encountered trying to upgrade to
wepack2
:I start the server with
npm run dev:prod-api
.I get a few warnings, but the server starts correctly:
However, when I open a page, I get the error in the console:
And the JS of the page doesn't work properly.
yaml.js
is a sub-sub dependency, that we probably don't use at all 😞 .