Git Product home page Git Product logo

Comments (11)

rakotomandimby avatar rakotomandimby commented on May 15, 2024 1

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

from ngx-admin.

gRoberts84 avatar gRoberts84 commented on May 15, 2024

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

from ngx-admin.

gRoberts84 avatar gRoberts84 commented on May 15, 2024

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

from ngx-admin.

nnixaa avatar nnixaa commented on May 15, 2024

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

from ngx-admin.

gRoberts84 avatar gRoberts84 commented on May 15, 2024

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

from ngx-admin.

nnixaa avatar nnixaa commented on May 15, 2024

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.

from ngx-admin.

nnixaa avatar nnixaa commented on May 15, 2024

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

from ngx-admin.

msiniy avatar msiniy commented on May 15, 2024

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.

from ngx-admin.

nnixaa avatar nnixaa commented on May 15, 2024

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.

from ngx-admin.

msiniy avatar msiniy commented on May 15, 2024

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!

from ngx-admin.

jakpren avatar jakpren commented on May 15, 2024

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

from ngx-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.