snabbt.js icon indicating copy to clipboard operation
snabbt.js copied to clipboard

npm does not install all required dependecies

Open FiGOBLAC opened this issue 9 years ago • 3 comments
trafficstars

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...

FiGOBLAC avatar Jan 17 '16 16:01 FiGOBLAC

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?

daniel-lundin avatar Feb 17 '16 18:02 daniel-lundin

@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.

kilianc avatar May 21 '16 07:05 kilianc

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.

mkstix6 avatar Nov 17 '16 19:11 mkstix6