Open Al-un opened 5 years ago
Facing the same issue. Tried installing node, but still it's giving error
Solution: After installing node, I removed duktape from my Gemfile and restart the rails server. it started working. It's working fine now
As long as you're not using duktape (Evaluating JS in your ruby files), you're good using this bootstrap gem.
Problem
Having Rails 5.2.1, server successfully starts up but on the first page load, an error appears from my application.html.erb:
Configuration
From
bundle list
:My application.scss has
@import "bootstrap"
:My application.js is
Hints
After trying by commenting out excerpts of code and restarting, I came to the conclusion that the culprit is
require 'autoprefixer-rails
fromengine.rb
. However, I could not figure out why but when commenting this line, I can successfully load my pages with bootstrap.Comments
My issue seems to be different from https://github.com/twbs/bootstrap-rubygem/issues/164, hence a different issue
After seeing https://github.com/twbs/bootstrap-rubygem/issues/162, just in case, I have Node v11.1.0 with NPM 6.4.1