Closed vinu-pillai closed 5 years ago
After installing solidus successfully in Ubuntu machine, I have received the following on the browser after starting the server -
Sass::SyntaxError in Spree::Home#index Showing /var/lib/gems/2.3.0/gems/solidus_frontend-1.4.2/app/views/spree/shared/_products.html.erb where line #31 raised:
Undefined mixin 'display'.
Trace of template inclusion: /var/lib/gems/2.3.0/gems/solidus_frontend-1.4.2/app/views/spree/home/index.html.erb
Rails.root: /home/solidus/solidusmp
not sure what this error is related to, but I am unable to find a solution.
It looks like you are using a very old Solidus version (1.4.2) can you try with the latest version (2.7.1)?
It looks like you are using a very old Solidus version (1.4.2) can you try with the latest version (2.7.1)?
Hi Kenny - Thanks for your reply,
I tried but bundle install & bundle update is taking 1.4.2. Here is the output -
Using solidus_core 1.4.2 Using devise-encryptable 0.2.0 Using solidus_api 1.4.2 Using solidus_sample 1.4.2 Using solidus_auth_devise 2.1.0 Using solidus_backend 1.4.2 Using solidus_frontend 1.4.2 Using solidus 1.4.2 Bundle complete! 14 Gemfile dependencies, 115 gems now installed
here is the version of ruby and rails -
$ ruby --version ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
rails -v Rails 4.2.6
Is there a way to invoke the latest version in bundle install/bundle update?
You probably need to change your Gemfile to point at a more recent version.
This will probably help: https://bundler.io/v1.17/guides/bundler_sharing.html
Closing since it looks like an issue with Rails/Solidus versions.
I encountered the same issue when updating a Spree app to Solidus. The reason this happens is that Solidus 1.4.2 depends on gem Bourbon which when installing resolves to version 5.1.0. This version doesn't include this and other mixins that solidus uses, leading to the error. This dependency is removed from solidus 2.2 on with this commit: https://github.com/solidusio/solidus/commit/b23c89564a46e6377d1e8187f76103fe37b1a47b
If you need to (temporarily) stay on Solidus 1.4.2 you can fix this error by adding to your Gemfile gem 'bourbon', '~> 4.3.4'
Steps to reproduce
Expected behavior
Actual behavior
System configuration
Solidus Version:
Extensions in use: