daniel-lundin / snabbt.js

Fast animations with javascript and CSS transforms
http://daniel-lundin.github.io/snabbt.js/
MIT License
5.2k stars 330 forks source link

npm does not install all required dependecies #74

Open FiGOBLAC opened 8 years ago

FiGOBLAC commented 8 years ago

Hello, For some reason when I install via npm I only get the snabbt.js file which calls for other files that are not present ( e.g. utils.js ). However when I install via bower everything seems to be in place and works correctly. The specific folders missing from the npm install are src and doc folders...

daniel-lundin commented 8 years ago

That's strange, there should be no external dependencies, it's a bundle that gets published to npm. I just tried with the latest release and it works for me. Can you show me how you require the library?

kilianc commented 8 years ago

@daniel-lundin the file referenced in package.json as main is the bundle and that doesn't allow a commonjs module loader like browserify to properly require the library.

mkstix6 commented 7 years ago

I think I've just run into this one using Webpack

WARNING in ./~/snabbt.js/snabbt.js
Critical dependencies:
2:479-486 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/snabbt.js/snabbt.js 2:479-486

Could be something i'm doing wrong, of course.