We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just helping any internet searchers coming around until Webpack fixes this.
If you are
You will run into this issue webpack/webpack#5198.
The problematic line for me is in ApiClient.prototype.isFileParam.
if (typeof window === 'undefined' && typeof require === 'function' && // <------ here require('fs') && param instanceof require('fs').ReadStream) { return true; }
Tried with 2.2.0 and 2.2.2.
require()
Go back to the old hack using imports-loader?define=false which still works until the bug is fixed.
imports-loader?define=false
The text was updated successfully, but these errors were encountered:
@darylteo thanks for sharing the workaround.
Sorry, something went wrong.
No branches or pull requests
Description
Just helping any internet searchers coming around until Webpack fixes this.
If you are
You will run into this issue webpack/webpack#5198.
The problematic line for me is in ApiClient.prototype.isFileParam.
Swagger-codegen version
Tried with 2.2.0 and 2.2.2.
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
require()
Swagger generated files from Webpack 3.Related issues
Suggest a Fix
Go back to the old hack using
imports-loader?define=false
which still works until the bug is fixed.The text was updated successfully, but these errors were encountered: