I just tried to refactor my app to use rekuire, and my functional tests are working, but when bundling up my app using webpack, I'm getting this error:
./~/rekuire/lib/helpers/scanner.js
Module not found: Error: Cannot resolve module 'fs' in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/lib/helpers
resolve module fs in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/lib/helpers
looking for modules in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs doesn't exist (module as directory)
resolve 'file' fs in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules
resolve file
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.js doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.json doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.coffee doesn't exist
looking for modules in /Users/tnrich/Sites/openVectorEditor/node_modules
/Users/tnrich/Sites/openVectorEditor/node_modules/fs doesn't exist (module as directory)
resolve 'file' fs in /Users/tnrich/Sites/openVectorEditor/node_modules
resolve file
/Users/tnrich/Sites/openVectorEditor/node_modules/fs doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/fs.js doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/fs.json doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/fs.coffee doesn't exist
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.js]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.json]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.coffee]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs.js]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs.json]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs.coffee]
@ ./~/rekuire/lib/helpers/scanner.js 3:9-22
./~/rekuire/lib/helpers/findBase.js
Module not found: Error: Cannot resolve module 'fs' in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/lib/helpers
resolve module fs in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/lib/helpers
looking for modules in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs doesn't exist (module as directory)
resolve 'file' fs in /Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules
resolve file
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.js doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.json doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.coffee doesn't exist
looking for modules in /Users/tnrich/Sites/openVectorEditor/node_modules
/Users/tnrich/Sites/openVectorEditor/node_modules/fs doesn't exist (module as directory)
resolve 'file' fs in /Users/tnrich/Sites/openVectorEditor/node_modules
resolve file
/Users/tnrich/Sites/openVectorEditor/node_modules/fs doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/fs.js doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/fs.json doesn't exist
/Users/tnrich/Sites/openVectorEditor/node_modules/fs.coffee doesn't exist
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.js]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.json]
[/Users/tnrich/Sites/openVectorEditor/node_modules/rekuire/node_modules/fs.coffee]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs.js]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs.json]
[/Users/tnrich/Sites/openVectorEditor/node_modules/fs.coffee]
@ ./~/rekuire/lib/helpers/findBase.js 1:9-22
I just tried to refactor my app to use rekuire, and my functional tests are working, but when bundling up my app using webpack, I'm getting this error:
Any ideas what might be causing it/how to fix it?