Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Cannot resolve module 'fs' after including sendgrid #410

Closed
xavianaxw opened this issue Apr 10, 2017 · 3 comments
Closed

Cannot resolve module 'fs' after including sendgrid #410

xavianaxw opened this issue Apr 10, 2017 · 3 comments

Comments

@xavianaxw
Copy link

xavianaxw commented Apr 10, 2017

For Blendid

Package: https://www.npmjs.com/package/sendgrid

The Error log

ERROR in ../sendgrid/lib/helpers/inbound/parse.js
Module not found: Error: Cannot resolve module 'fs' in /Users/xavianaxw/Code/honestfox/node_modules/sendgrid/lib/helpers/inbound
 @ ../sendgrid/lib/helpers/inbound/parse.js 3:9-22

ERROR in ../mime/mime.js
Module not found: Error: Cannot resolve module 'fs' in /Users/xavianaxw/Code/honestfox/node_modules/mime
 @ ../mime/mime.js 2:9-22

ERROR in ../uue/uue.js
Module not found: Error: Cannot resolve module 'fs' in /Users/xavianaxw/Code/honestfox/node_modules/uue
 @ ../uue/uue.js 1:9-22

I found a solution for this on another repo here where I'm suppose to add the following code into my config.

node: {
  fs: "empty"
}

Currently I added this to my webpack-multi-config.js file in node_modules/blendid but I'm looking for a way to manage it from my root folder's task-config.js

@greypants
Copy link
Contributor

Just a feature yesterday that lets you get at the full webpackConfig object for modification through a customizeWebpackConfig option. Here's the documentation in the readme: https://github.com/vigetlabs/gulp-starter/tree/blendid#customizewebpackconfig

Let me know if that works out for you!

@greypants
Copy link
Contributor

Oh - you'll need to install the specific release:

yarn update blendid@4.0.0-rc.11

@xavianaxw
Copy link
Author

Awesome! I'll give it a go @greypants

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants