question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v5: Sass btn-primary color: #000 is incorrect when NPM RUN DEV or NPM RUN PRODUCTION

See original GitHub issue

If I do btn-dark, btn-secondary, etc… the color is white or #fff but when I do btn-primary the font is black.

I did:

npm install bootstrap@next
npm run dev or production

my app.scss
  // Bootstrap
  @import '~bootstrap/scss/bootstrap';


my index.html
 <button type="submit" class="btn btn-primary">
   Register
 </button>   

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
networxxcommented, Jan 18, 2021

Well… you all are correct. I just started looking at the _variables.scss file in the node_modules directory vs in my app’s directory and that’s where the color changed happened. I overwrote the values in the app’s scss file and presto… back to normal bootstrap colors.

I’m using Laravel and not sure how those colors got whacked.

Thank you for hanging in there with me and showing me. That helped a bunch.

2reactions
networxxcommented, Jan 16, 2021

If I do NPM RUN DEVELOPMENT or PRODUCTION I am seeing this:

Screen Shot 2021-01-16 at 6 39 13 AM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong output on 'npm run prod' - css - Stack Overflow
I understand that it took the border-width , border-style and border-color parts of the variables and put them into a single property that...
Read more >
@fishawack/core - npm
Bundles the app in production mode. npm run production. Deploy. Transfers the build to a server based on which branch you're currently on....
Read more >
Getting Started with Bootstrap 5, React, and Sass - Designmodo
To use Bootstrap 5 with React JS, we need to install it via npm by running the command below on our terminal. npm...
Read more >
Npm run start not working, No configuration provided for main ...
I've been working on a project for quite some time with sage 9.0.9 and it's been working great. A couple of days ago...
Read more >
ASP.NET Core, Angular with Webpack and Visual Studio
"watch-webpack-dev" : "webpack --env=dev --watch --color" ,. "watch-webpack-production" : "npm run build-production --watch --color" ,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found