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

Uncaught Invariant Violation error in console #669

Closed
bfabio opened this issue Sep 10, 2020 · 2 comments · Fixed by #873
Closed

Uncaught Invariant Violation error in console #669

bfabio opened this issue Sep 10, 2020 · 2 comments · Fixed by #873

Comments

@bfabio
Copy link
Member

bfabio commented Sep 10, 2020

The console shows an error that doesn't seem to have consequences on the site:

Uncaught Invariant Violation: Minified React error #37; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=37 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at e.exports (https://developers.italia.it/dist/bundle.js:320:94349)
    at Object._renderNewRootComponent (https://developers.italia.it/dist/bundle.js:390:175485)
    at Object._renderSubtreeIntoContainer (https://developers.italia.it/dist/bundle.js:390:176560)
    at Object.render (https://developers.italia.it/dist/bundle.js:390:176687)
    at C (https://developers.italia.it/dist/bundle.js:370:12059)
    at f (https://developers.italia.it/dist/bundle.js:410:152954)
    at Er (https://developers.italia.it/dist/bundle.js:410:153387)
    at Module.<anonymous> (https://developers.italia.it/dist/bundle.js:460:156367)
    at n (https://developers.italia.it/dist/bundle.js:1:110)
    at https://developers.italia.it/dist/bundle.js:1:902
@bfabio
Copy link
Member Author

bfabio commented Sep 16, 2020

The proper fix would be to use swagger-ui-react, which addresses this very problem.

Problem is swagger-ui-react doesn't support custom plugins and that's the whole point of our Swagger integration.

Pushing the issue back for now since the issue doesn't seem to have any practical effect on the user experience.

Related to #695

@emilioSp
Copy link
Contributor

emilioSp commented Dec 15, 2020

@bfabio I've found the cause of the problem but unfortunately at the moment, I don't have a solution.

The warning is due to the fact that here the element #swagger is not present in the dom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants