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

Could not find path to 'bootstrap-sass' module. #30

Closed
gRoberts84 opened this issue Jun 13, 2016 · 11 comments
Closed

Could not find path to 'bootstrap-sass' module. #30

gRoberts84 opened this issue Jun 13, 2016 · 11 comments

Comments

@gRoberts84
Copy link

  • I'm submitting a ...
    [X] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
  • Do you want to request a feature or report a bug?

Report a bug

  • What is the current behavior?
ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
Module build failed: Error: 
      Could not find path to 'bootstrap-sass' module.
      Make sure it's installed in your 'node_modules/' directory.

    at Object.module.exports.pitch (/Users/gavin_roberts/projects/Lead Gateway/client/node_modules/bootstrap-loader/lib/bootstrap.loader.js:90:11)
 @ ./~/bootstrap-loader/loader.js 1:0-44
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
  1. Follow installation guidelines - https://akveo.github.io/ng2-admin/articles/002-installation-guidelines/
  2. npm start
  3. Navigate to http://localhost:3000
  • What is the expected behavior?

Page would render successfully and no errors would appear.

  • What is the motivation / use case for changing the behavior?

Users will be able to use the project.

  • Please tell us about your environment:
  • Angular version: 2.0.0-rc.1
  • Browser: all
@gRoberts84
Copy link
Author

FYI - installing bootstrap-sass resolves the situation, however the package is not within the package.json file.

@rakotomandimby
Copy link

@gRoberts84 , you install it with npm install bootstrap-sass ?

@gRoberts84
Copy link
Author

@rakotomandimby To get around the issue yeah, however without doing it, the pages wouldn't render properly and there were multiple errors relating to bootstrap-sass not being available.

@nnixaa
Copy link
Collaborator

nnixaa commented Jun 14, 2016

Hi @gRoberts84, could you provide your npm/node version? Also, are you on windows/mac/linux?

@gRoberts84
Copy link
Author

Hi @nnixaa,

npm: 3.5.3
node: 5.5.0

os: Mac OSX 10.11.5

Just to note though, surely this shouldn't be an environmental issue but more that the package/bower files hadn't contained the bootstrap-sass package?

Thanks

@nnixaa
Copy link
Collaborator

nnixaa commented Jun 21, 2016

Hi @gRoberts84 , generally this is not an issue with ng2-admin, because the dependency is declared inside bootstrap-loader module. More specifically, there is a line:
var bootstrapNPMModule = _bootstrap.bootstrapVersion === 3 ? 'bootstrap-sass' : 'bootstrap';

which determines which package should be loaded. As ng2-admin uses bootstrap version 4 hence there is no error occurs normally. But for some reason in your case bootstrap-loader tries to load 3rd version of bootstrap. If you are loading 3rd version on purpose then there is no issue with ng2-admin and bootstrap-sass is your local dependency. Otherwise please check the following line https://github.com/akveo/ng2-admin/blob/master/.bootstraprc#L6 and make sure it is set to version 4.

@nnixaa
Copy link
Collaborator

nnixaa commented Jun 27, 2016

@gRoberts84 I'm closing the issue now, please let me know if this is still an issue.

@nnixaa nnixaa closed this as completed Jun 27, 2016
@msiniy
Copy link

msiniy commented Aug 2, 2016

Hi all.
Today I got a similar problem. I've found that after npm install command the installed bootstrap version is v4.0.0-alpha3.
There is a notice here https://www.npmjs.com/package/bootstrap-loader which says that alpha3 is broken.
So I edited the dependency line from "bootstrap": "^4.0.0-alpha.2" to ""bootstrap": "4.0.0-alpha.2" and the problem gone away.

@nnixaa
Copy link
Collaborator

nnixaa commented Aug 2, 2016

Hey @msiniy, thanks for your comment. Btw, the bootstrap version is already pinned in package.json https://github.com/akveo/ng2-admin/blob/master/package.json#L21.

@msiniy
Copy link

msiniy commented Aug 2, 2016

Oh, my bad. It seems that I changed the version myself when tried to cut off unnecessary for me parts from ng2-admin. Thanks for your great job!

@jakpren
Copy link

jakpren commented Jan 30, 2017

@rakotomandimby, @gRoberts84 thanks, dude.. it works with "npm install bootstrap-sass" command.

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

6 participants