Closed limciana closed 6 years ago
Which version?
semantic-ui-sass: 2.2.12.1 sass: 3.5.3 rails: 5.0.6
@limciana I've tested and it works well on my mac,
I did exactly those.
I re-did my Rails app, and it still had the errors.
The steps:
source 'https://rubygems.org'
gem 'rails'
gem 'mysql2', '>= 0.3.13', '< 0.5'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'composite_primary_keys', '~> 9.0', '>= 9.0.8'
gem 'semantic-ui-sass'
group :development, :test do gem 'byebug' end
group :development do gem 'web-console', '~> 3.0'
gem 'spring' end
2. ran `rails generate scaffold locs`
3. included `@import "semantic-ui` to `locs.scss,` and `//= require semantic-ui` to `application.js`
4. ran `rails s`, and opened localhost, and the error is still there
![screenshot from 2017-11-23 08-54-56](https://user-images.githubusercontent.com/15266219/33155503-15f303c2-d02c-11e7-8e5a-f516092f39e1.png)
![screenshot from 2017-11-23 08-56-06](https://user-images.githubusercontent.com/15266219/33155561-643511ba-d02c-11e7-96f0-c4fffb5472e0.png)
Your browser is firefox?
yes, my browser is firefox
Could you see errors when use https://semantic-ui.com/dist/semantic.min.css to replace application.css
?
there were now less errors!
Also, update. I tried to run the code in Google Chrome also, and the warnings weren't appearing. However, there were css elements that were crossed out.
The left panel is from Google Chrome, and the right panel is from Firefox.
In chrome, some css elements that were crossed out because of chrome does not support the css attributes that start with -webkit
.
I also tested in firefox 57 and have't appear there errors. when you use https://semantic-ui.com/dist/semantic.min.css
, appear any error?
I ran rails s again, and the errors are back.
Yes, the errors were still there.
@limciana If use https://semantic-ui.com/dist/semantic.min.css
still have errors, i think you can open a new issue for https://github.com/Semantic-Org/Semantic-UI.
Followed the directions to install the semantic-ui-sass gem, included import statements to .scss files also, and required semantic-ui in application.js.
Running the Rails server, and opening the console shows this.
Is this something to be worried about?