-
-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails7 Error: File to import not found or unreadable: bootstrap/scss/bootstrap. #243
Comments
@TangMonk I doubt this is a bug with this gem, so can this be closed? I agree You haven't given much detail, but perhaps you're using If so, I've seen this error, since doing that requires appending to the default asset search paths for Sprockets to look in # config/initializers/assets.rb
+ Rails.application.config.assets.paths << Rails.root.join('node_modules') // app/assets/stylesheets/application.bootstrap.scss loaded with sprockets-rails
@import 'bootstrap/scss/bootstrap'; Should now work because Sprockets can now find this file: $ file node_modules/bootstrap/scss/bootstrap.scss # sprockets adds the .scss extension for you
node_modules/bootstrap/scss/bootstrap.scss: ASCII text The JavaScript would already be loading fine with // app/javascript/application.js loaded with js-bundling-rails
import * as bootstrap from 'bootstrap' |
Hi @TangMonk, I'm working on an open-source project and have been encountering similar issues while trying to integrate this engine: LoggableActivity, into this application: LoggableActivityDemoApp. I keep getting this error: There's a link to a Slack channel for the project on this page: Loggable Activity Slack Channel. |
The text was updated successfully, but these errors were encountered: