foundation-rails icon indicating copy to clipboard operation
foundation-rails copied to clipboard

ActionView::Template::Error (Undefined operation: "rem-calc(16) times 1.5".)

Open alanjosephwilliams opened this issue 9 years ago • 5 comments

When @include foundation-forms is present (and only foundation-forms) in the foundation_and_override.scss file, the following error occurs:

Started GET "/interview-requests/new" for ::1 at 2016-02-04 14:14:12 -0800
Processing by InterviewRequestsController#new as HTML
  Rendered interview_requests/new.html.erb within layouts/application (25.7ms)
Completed 500 Internal Server Error in 1618ms (ActiveRecord: 0.0ms)

ActionView::Template::Error (Undefined operation: "rem-calc(16) times 1.5".):
     6:
     7:     <title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
     8:
     9:     <%= stylesheet_link_tag    "application" %>
    10:     <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
    11:     <%= csrf_meta_tags %>
    12:   </head>
  app/assets/stylesheets/foundation_and_overrides.scss:16
  app/views/layouts/application.html.erb:9:in `_app_views_layouts_application_html_erb__127427935090308134_70243877749960'


  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (14.1ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (8.5ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (42.8ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/_markup.html.erb (0.4ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.9ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.4ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.5ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/console.js.erb within layouts/javascript (24.2ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
  Rendered /Users/alanjosephwilliams/.rvm/gems/ruby-2.1.5/gems/web-console-2.2.1/lib/web_console/templates/index.html.erb (45.8ms)

When@import foundation-forms is uncommented, things work just fine.

I'm using Rails 4.2.5 and Ruby 2.1.5. Any thoughts or recommendations for how to resolve this issue? The is form heavy and I would like to use these styles.

alanjosephwilliams avatar Feb 04 '16 22:02 alanjosephwilliams

@alanjosephwilliams This error (Undefined operation: "rem-calc(16) times 1.5".) is for a bad operation in SASS.

Do you have a repository where I can wacth your sass files? :wink:

decabeza avatar Feb 06 '16 10:02 decabeza

@alanjosephwilliams are you still facing this issue?

mehlah avatar Mar 17 '16 09:03 mehlah

@alanjosephwilliams did you ever find a solution for this issue? I'm also seeing it, but I'm just using foundation-sites.

goodmorninggoaway avatar Jul 22 '16 14:07 goodmorninggoaway

I also seem to be facing this issue.

The problem is with rem-calc function which is not interpolated, I think.

Just installed Foundation 6.2 with npm.

afkatja avatar Sep 04 '16 14:09 afkatja

I am running into this problem as well right now :( I am using rails 5.

caiocutrim avatar Mar 07 '18 13:03 caiocutrim