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.

Can't use alternate bootstrap css..

See original GitHub issue

I’m trying to use a bootstrap.min.css that I’ve found online (and used normally before), but when I try to import it instead of the standard bootstrap css, I get a bunch of errors:

ERROR in ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css
Module not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.eot' in '/Users/myuser/Dropbox/Programming/Ruby/Southwest/server/src'
 @ ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css 6:3285-3337 6:3355-3407
 @ ./src/bootstrap.min.css
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://127.0.0.1:8010 webpack/hot/dev-server ./src/main.js

ERROR in ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css
Module not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.woff2' in '/Users/myuser/Dropbox/Programming/Ruby/Southwest/server/src'
 @ ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css 6:3456-3510
 @ ./src/bootstrap.min.css
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://127.0.0.1:8010 webpack/hot/dev-server ./src/main.js

ERROR in ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css
Module not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.woff' in '/Users/myuser/Dropbox/Programming/Ruby/Southwest/server/src'
 @ ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css 6:3540-3593
 @ ./src/bootstrap.min.css
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://127.0.0.1:8010 webpack/hot/dev-server ./src/main.js

ERROR in ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css
Module not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.ttf' in '/Users/myuser/Dropbox/Programming/Ruby/Southwest/server/src'
 @ ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css 6:3622-3674
 @ ./src/bootstrap.min.css
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://127.0.0.1:8010 webpack/hot/dev-server ./src/main.js

ERROR in ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css
Module not found: Error: Can't resolve '../fonts/glyphicons-halflings-regular.svg' in '/Users/myuser/Dropbox/Programming/Ruby/Southwest/server/src'
 @ ./~/css-loader!./~/postcss-loader!./src/bootstrap.min.css 6:3707-3759
 @ ./src/bootstrap.min.css
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://127.0.0.1:8010 webpack/hot/dev-server ./src/main.js

My main.js is as follows:

import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue'
import App from './App.vue'
import 'normalize.css'
import './bootstrap.min.css'
// import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'

Vue.use(BootstrapVue)

new Vue({
  el: '#app',
  render: h => h(App)
})

What is causing this? I found a solution mentioned online about changing my webpack.config.js to include eot/woff2/woff/ttf/svg files but it seems I already have that configuration in there…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maxiedanielscommented, Jul 30, 2017

Figured it out… dumb, but I didn’t realize the theme I was using was not for the new alpha. Thank you for the help!!

0reactions
alexsasharegancommented, Jul 30, 2017

You’re welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap CSS not loading - Stack Overflow
Try using bootstrap.css instead of bootstrap.min.css . Also, make sure that it's in the correct path. Another thing you can try as well...
Read more >
10 Most Common Bootstrap Mistakes That Developers Make
Common Bootstrap Mistake #7: Overcomplicating with JavaScript and ignoring “data-” attributes. Designers, or just novice JavaScript developers, can very easily ...
Read more >
CSS · Bootstrap
Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning...
Read more >
How to Integrate Bootstrap with ReactJS | Pluralsight
Why Bootstrap Components Cannot Be Included with React ... are different libraries that can enable the use of Bootstrap along with React.
Read more >
How to Edit, Customize, and Override Bootstrap CSS to Suit ...
There are a few different ways to get started with Bootstrap. You can use BootstrapCDN to deliver a cached version of Bootstrap's compiled...
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