Can't use alternate bootstrap css..
See original GitHub issueI’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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
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!!
You’re welcome!