Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm does not install all required dependecies #74

Open
FiGOBLAC opened this issue Jan 17, 2016 · 3 comments
Open

npm does not install all required dependecies #74

FiGOBLAC opened this issue Jan 17, 2016 · 3 comments

Comments

@FiGOBLAC
Copy link

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
Copy link
Owner

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
Copy link

kilianc commented May 21, 2016

@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
Copy link

mkstix6 commented Nov 17, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants