I installed require npm package on app, imported it in react module, and got this error:
Error in ./~/request/lib/har.js
Module not found: Error: Cannot resolve module 'fs' in D:\projects\date-range-picker\node_modules\request\lib
@ ./~/request/lib/har.js 3:9-22
Error in ./~/request/~/forever-agent/index.js
Module not found: Error: Cannot resolve module 'net' in D:\projects\date-range-picker\node_modules\request\node_modules\forever-agent
@ ./~/request/~/forever-agent/index.js 6:10-24
Error in ./~/request/~/forever-agent/index.js
Module not found: Error: Cannot resolve module 'tls' in D:\projects\date-range-picker\node_modules\request\node_modules\forever-agent
@ ./~/request/~/forever-agent/index.js 7:10-24
Error in ./~/request/~/tough-cookie/lib/cookie.js
Module not found: Error: Cannot resolve module 'net' in D:\projects\date-range-picker\node_modules\request\node_modules\tough-cookie\lib
@ ./~/request/~/tough-cookie/lib/cookie.js 32:10-24
Error in ./~/request/~/tunnel-agent/index.js
Module not found: Error: Cannot resolve module 'net' in D:\projects\date-range-picker\node_modules\request\node_modules\tunnel-agent
@ ./~/request/~/tunnel-agent/index.js 3:10-24
Error in ./~/request/~/tunnel-agent/index.js
Module not found: Error: Cannot resolve module 'tls' in D:\projects\date-range-picker\node_modules\request\node_modules\tunnel-agent
@ ./~/request/~/tunnel-agent/index.js 4:10-24
Is a very similar issue to what's described here:
request/request#1691
In the issue above is indicated to tweak the webpack.config.js file to cater for those elements that are being called.
Is there any known workaround for this?
I installed require npm package on app, imported it in react module, and got this error:
Is a very similar issue to what's described here:
request/request#1691
In the issue above is indicated to tweak the webpack.config.js file to cater for those elements that are being called.
Is there any known workaround for this?