No mixin named border-radius
See original GitHub issueI’m attempting to use the bootstrap 4 styles. We have an angular-cli projects and inside the angular-cli.json file I’ve added the following to my styles.
"styles": [ "../node_modules/bootstrap/scss/bootstrap.scss", "../node_modules/ngx-toastr/toastr-bs4-alert.scss",
For whatever reason, when I run ng build
I end up getting the error message “No mixin named border-radius”. I made sure to put them in the correct order, but for whatever reason, it does not want to build properly. Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
no mixin named roboto-family Backtrace: src/pages/forms ...
You can even pass in values to make your mixin more flexible. A good use of a mixin is for vendor prefixes. Here's...
Read more >Sass Mixins - LearnHowToProgram.com
Mixins are blocks of Sass that can be defined once, then called and reused in ... without needing to resort to non-semantic classes...
Read more >How to Use Mixins in Sass and Pass Arguments – With Code ...
An argument is the name of a variable which is separated by a comma. ... In a regular mixin (and by regular I...
Read more >border-radius scss mixin - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >Sass: @forward
The @forward rule loads a Sass stylesheet and makes its mixins, functions, ... But those names might not make sense outside the module...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In your
styles.scss
import bootstrap (or just bootstrap variables) then import the scss in this library.example:
If you don’t have styles.scss and instead just have styles.css, just rename it to
styles.scss
and then restart angular-cliThanks for fast response Adding
@import '~bootstrap/scss/bootstrap';
solved the issueFYI Adding
functions
andvariables
will cause the below error as wellArgument '$color' of 'darken($color, $amount)' must be a color