-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Issue with swagger-ui-react after update: Buffer is not defined #6869
Comments
@Fedema92 Do you use webpack >= 5? I guess this is due to https://webpack.js.org/blog/2020-10-10-webpack-5-release/#automatic-nodejs-polyfills-removed. If so try to add the Node.Js Buffer Polyfill: webpack/changelog-v5#10 (comment) Besides that I could not reproduce the issue. Sandboxes used: swagger-ui-react, swagger-ui-react-webpack |
Yes, I had just updated webpack to v6. I had added the ProvidePlugin to webpack configuration and it works like a charm. |
I replaced |
This works for me, thanks @mathis-m |
After the update of swagger-ui-react to 3.40.0 this error message appear in console anytime I open the page with swagger component
The text was updated successfully, but these errors were encountered: