I'm getting this error
ERROR in ./bower_components/velocity/velocity.js
Module build failed: TypeError: /Users/dave/project/bower_components/velocity/velocity.js: Cannot read property 'length' of undefined
(note: the error is much longer with all kinds of babel-core errors, but I'm assuming that it's because something isn't loading correctly with Velocity)
My Webpack alias:
Velocity: resolveBowerPath('/velocity/velocity.js')
My javascript import:
import Velocity from 'Velocity';
When I nano that path (/Users/dave/project/bower_components/velocity/velocity.js) in terminal, the file comes up fine so it's not a bad import URL, and I'm able to import other Bower projects fine, this has been the only one that won't load. Is there something I'm doing wrong?
Note: I'm getting the very same error when I try to shim Velocity with webpack.ProvidePlugin()
so I'm thinking it's not an issue with webpack...