Comments (2)
Hope this helps.
I too was having issues with bootstrap/custom
and later bootstrap/tags
but managed to explain the issue.
The cause is 4.0.0.alpha3
was released on December 14, 2015 (https://github.com/twbs/bootstrap-rubygem/releases/tag/v4.0.0.alpha3), but _custom.scss
was only added on January (https://github.com/twbs/bootstrap-rubygem/commits/master/assets/stylesheets/bootstrap/_custom.scss). Similarly, you will get this error for @import 'bootstrap/tags'
line since it was only added on February.
I have 3 possible short term solutions for you:
- In your
_bootstrap-custom.scss
file comment outbootstrap/custom
andbootstrap/tags
lines. This is ok if you don't want to override bootstrap variables and if you don't need tags yet - Create the missing files in your app. So under
app/assets/stylesheets
create abootstrap/_custom.scss
andbootstrap/_tags.scss
files. I have not tried this approach for the_tags
file mainly because I don't need it yet. But it should work. The only issue I can foresee if you ever run in to one is if the_tags.scss
is using variables/mixins that were not bundled in the gem release you just installed. Possible solution to it is copy the these files as you did with with the_tags.scss
in your newly created bootstrap directory. - The other way is, just download the
https://github.com/twbs/bootstrap-rubygem/tree/master/assets
and include them in your app
Long term solution is, hopefully new version can get released soon.
If you are curious about my debugging process, Rails made it really easy:
-
It said that it couldn't find the asset in my load path:
/moo/app/assets/config /moo/app/assets/images /moo/app/assets/javascripts /moo/app/assets/stylesheets /moo/vendor/assets/javascripts /moo/vendor/assets/stylesheets /box/gems/jquery-rails-4.1.1/vendor/assets/javascripts /box/gems/coffee-rails-4.2.1/lib/assets/javascripts /box/gems/actioncable-5.0.0/lib/assets/compiled /box/gems/turbolinks-source-5.0.0/lib/assets/javascripts /box/gems/bootstrap-4.0.0.alpha3/assets/stylesheets /box/gems/bootstrap-4.0.0.alpha3/assets/javascripts /box/gems/bootstrap-4.0.0.alpha3/assets/stylesheets /box/gems/bootstrap-4.0.0.alpha3/assets/stylesheets
-
Since I know it is part of bootstrap, I just did
ls -l /box/gems/bootstrap-4.0.0.alpha3/assets/stylesheets
and later on stumbled in thestylesheets/bootstrap
directory in which I did not find the missing files. -
Then just confirmed my suspicion that they were missed in the release by checking github.
As for your tooltip.js
question, not sure as I haven't dug in to that issue 😄 .
from bootstrap-rubygem.
@brandonparsons Here's an example from my Rails 5 application.js. Notice the difference between the # and = for certain lines.
//= require bootstrap/util
//# require bootstrap/alert
//= require bootstrap/button
//# require bootstrap/carousel
//= require bootstrap/collapse
//= require bootstrap/dropdown
//= require bootstrap/modal
//# require bootstrap/scrollspy
//= require bootstrap/tab
//# require bootstrap/tooltip # not required
//# require bootstrap/popover # not required
For the SASS portions, create a _bootstrap-custom.scss
file and import the individual files there.
from bootstrap-rubygem.
Related Issues (20)
- CI: replace Travis by GitHub Action HOT 1
- Rails7 Error: File to import not found or unreadable: bootstrap/scss/bootstrap. HOT 2
- Bootstrap 5.2.3 now available but rubygem missing HOT 1
- Bootstrap without sprockets HOT 18
- JS interactions not working when following the instructions in the README HOT 4
- Provide build for 5.3.0-alpha1 HOT 4
- Support for Bootstrap 5.3 HOT 1
- Gem "5.3.0-alpha1" does not exist as the document states in multiple places HOT 2
- Move to Dart Sass HOT 8
- Bootstrap 4.6.2 popper issue HOT 4
- Importmaps Documentation HOT 2
- Sass ABS deprecation warning for bootstrap-rubygem v 5.3.1 HOT 1
- Dynamic on the fly CSS generation
- Rubygems has latest of 5.3.1 and not 5.3.2 HOT 2
- Breaking change in 5.3.2: dropping dependencies HOT 3
- Update autoprefixer-rails dependency HOT 1
- Include ESM version?
- Main branch is ahead of rubygem’s gem, dartsass-rails is not included HOT 3
- Include bootstrap-icons HOT 1
- Rails default Dockerfile build failed after added bootstrap gem HOT 6
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 bootstrap-rubygem.