Using the JS generator, I get undefined from require('fs') in the function isFileParam in ApiClient.js:
if (typeof module === 'object' && module.exports &&
(param instanceof Buffer || param instanceof require('fs').ReadStream)) {
return true;
}
I am using browserify, and I tried installing browserify-fs, and setting this in my package.json:
"browser": {
"fs": "browserify-fs"
}
But I am not sure that this is the correct approach.
Using the JS generator, I get
undefinedfromrequire('fs')in the functionisFileParaminApiClient.js:I am using browserify, and I tried installing
browserify-fs, and setting this in my package.json:But I am not sure that this is the correct approach.