Comments (11)
@gRoberts84 , you install it with npm install bootstrap-sass
?
from ngx-admin.
FYI - installing bootstrap-sass
resolves the situation, however the package is not within the package.json file.
from ngx-admin.
@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.
Hi @gRoberts84, could you provide your npm/node version? Also, are you on windows/mac/linux?
from ngx-admin.
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.
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.
@gRoberts84 I'm closing the issue now, please let me know if this is still an issue.
from ngx-admin.
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.
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.
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.
@rakotomandimby, @gRoberts84 thanks, dude.. it works with "npm install bootstrap-sass" command.
from ngx-admin.
Related Issues (20)
- - 🔫 I ...
- updated the ngx-admin to the latest version and added nx workspace to it
- where is the cash icon? HOT 1
- Repository state and engagement with the community HOT 2
- while installing i am getting an error. please help asap HOT 4
- How to implement table with row detail?
- Upgrade to Angular 16
- Upgrade to Angular 16 HOT 3
- NbOAuth2AuthStrategy show errors from login response HOT 1
- 01
- my starter-kit [is not an issue] HOT 1
- Failing to build HOT 1
- Failing to build HOT 1
- 如何食用ngx-admin
- How to change the left-side menu default language? HOT 1
- I encountered an issue HOT 1
- Need the list of all icons HOT 1
- overlay issue on online demo app null (reading 'setAttribute') at On updateElementDirection
- Nx with agx-admin starter kit - Micro Frontend is supported
- ngx-admin dashboard MENU ITEMS not automatically refreshed after each login
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-admin.