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
If anyone is trying to use this package with webpack, you might get some errors like
ERROR in ./node_modules/request/lib/har.js Module not found: Error: Can't resolve 'fs' in '...\node_modules\request\lib'
I think the error has to do with something Node specific and browsers not supporting Node's full capabilities.
A fix I found was to add the following to your webpack.config.js:
webpack.config.js
module.exports = { node: { fs: 'empty', net: 'empty', tls: 'empty' } }
I'm actually not exactly sure what this does, but I'm assuming it just removes the need for these packages in the final bundle.
Unsure if this is the proper way to go about bundling this package in browser apps.
I still run into #34 CORS issues after getting this bundle to compile.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If anyone is trying to use this package with webpack, you might get some errors like
I think the error has to do with something Node specific and browsers not supporting Node's full capabilities.
A fix I found was to add the following to your
webpack.config.js
:I'm actually not exactly sure what this does, but I'm assuming it just removes the need for these packages in the final bundle.
Unsure if this is the proper way to go about bundling this package in browser apps.
I still run into #34 CORS issues after getting this bundle to compile.
The text was updated successfully, but these errors were encountered: