gpt4 book ai didi

ruby-on-rails-3 - 找不到或无法读取要导入的文件 : bootstrap-wysihtml5

转载 作者:行者123 更新时间:2023-12-03 23:36:50 25 4
gpt4 key购买 nike

我有一个带有多个引擎的 Rails 4rc1 应用程序。我正在使用 bootstrap-wysihtml5-rails我的管理引擎中的 gem。根据文档,我将 gem 'bootstrap-wysihtml5-rails' 添加到管理引擎的 Gemfile 中。然后,当我将 @import 'bootstrap-wysihtml5' 添加到管理引擎的 application.scss 时。我收到以下错误:

File to import not found or unreadable: bootstrap-wysihtml5.
Load paths:
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/coffee-rails-4.0.0/lib/assets/javascripts
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/font-awesome-sass-rails-3.0.2.2/app/assets/fonts
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/font-awesome-sass-rails-3.0.2.2/app/assets/stylesheets
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/bootstrap-sass-2.3.1.0/vendor/assets/images
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/bootstrap-sass-2.3.1.0/vendor/assets/javascripts
/home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/bootstrap-sass-2.3.1.0/vendor/assets/stylesheets

我的application.scss 好像找不到bootstrap-wysihtml5。但为什么?我不知道 :( 顺便说一句,JavaScript 工作正常。这是我的环境:

Gems included by the bundle:
* actionmailer (4.0.0.rc1)
* actionpack (4.0.0.rc1)
* activemodel (4.0.0.rc1)
* activerecord (4.0.0.rc1)
* activerecord-deprecated_finders (1.0.2)
* activesupport (4.0.0.rc1)
* addressable (2.3.4)
* admin (0.0.1)
* arel (4.0.0)
* atomic (1.1.8)
* bcrypt-ruby (3.0.1)
* bootstrap-sass (2.3.1.0)
* bootstrap-wysihtml5-rails (0.3.1.20)
* builder (3.1.4)
* bundler (1.3.5)
* capybara (2.1.0)
* carrierwave (0.8.0)
* coffee-rails (4.0.0)
* coffee-script (2.2.0)
* coffee-script-source (1.6.2)
* core (0.0.1)
* diff-lcs (1.2.4)
* erubis (2.7.0)
* execjs (1.4.0)
* factory_girl (4.2.0)
* factory_girl_rails (4.2.1)
* ffaker (1.16.1)
* font-awesome-sass-rails (3.0.2.2)
* hike (1.2.2)
* i18n (0.6.4)
* jquery-rails (2.2.1)
* kaminari (0.14.1)
* launchy (2.3.0)
* letter_opener (1.1.1)
* mail (2.5.3)
* mime-types (1.23)
* mini_magick (3.6.0)
* minitest (4.7.3)
* multi_json (1.7.2)
* nokogiri (1.5.9)
* pg (0.15.1)
* polyglot (0.3.3)
* rack (1.5.2)
* rack-test (0.6.2)
* rails (4.0.0.rc1)
* railties (4.0.0.rc1)
* rake (10.0.4)
* rspec-core (2.13.1)
* rspec-expectations (2.13.0)
* rspec-mocks (2.13.1)
* rspec-rails (2.13.2)
* sass (3.2.8)
* sass-rails (4.0.0.rc1)
* shoulda-matchers (2.1.0)
* simplecov (0.8.0.pre)
* simplecov-html (0.7.1)
* sprockets (2.9.3)
* sprockets-rails (2.0.0.rc4)
* state_machine (1.2.0)
* subexec (0.2.3)
* thor (0.18.1)
* thread_safe (0.1.0)
* tilt (1.3.7)
* treetop (1.4.12)
* tzinfo (0.3.37)
* upsert (1.2.0)
* warden (1.2.1)
* xpath (2.0.0)

最佳答案

发现于 https://github.com/Nerian/bootstrap-wysihtml5-rails/issues/62

替换:

@import 'bootstrap-wysihtml5'

与:

@import "bootstrap-wysihtml5/core"
@import "bootstrap-wysihtml5/wysiwyg-color"

关于ruby-on-rails-3 - 找不到或无法读取要导入的文件 : bootstrap-wysihtml5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16978525/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com