Closed garthk closed 8 years ago
The next problem might share a root cause:
TypeError: Cannot read property 'split' of undefined
at path (node_modules/deppack/lib/module-naming.js:21:21)
at filePath (node_modules/deppack/lib/module-naming.js:31:20)
at node_modules/deppack/lib/modules.js:55:17
at Array.reduce (native)
at usedShims.toArray.reduce (node_modules/deppack/lib/modules.js:54:30)
Thanks for the report!
I submitted https://github.com/brunch/deppack/pull/7 to address this.
I'm trying
brunch
on a legacy code base, and failing because:(I've inserted newlines to aid readability at the expense of length.)
Each hits
checkImproperCase
withres
set to___shims___
plus the module name, e.g.___shims___/fs
.trueCasePath(res)
evaluates toundefined
. I'm not yet sure why the shims are there, but adding a check againstundefined
gets me past the problem.