I get 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 types of errors in the headstock, but I assume that this is because something is loading incorrectly from Velocity)
My alias is Webpack:
Velocity: resolveBowerPath('/velocity/velocity.js')
My javascript import:
import Velocity from 'Velocity';
When I nano this path (/Users/dave/project/bower_components/velocity/velocity.js) in the terminal, the file looks fine so that it is not a bad import url and I can import other Bower projects perfectly, it was the only one which will not load. Is there something I'm doing wrong?
Note. I get the same error when I try to flash Velocity using webpack.ProvidePlugin() , so I think this is not a problem with webpack ...
source share