Ask A Question


You’re not receiving notifications from this thread.

Got error File to import not found or unreadable: foundation/functions.

geekdie asked in Rails

I upgraded my rails app ruby version from 2.2.1 to 2.5.1 and some its gems. When I load my rails app I got this error. Below are my gems:

gem 'mysql2', '< 0.5.0'
gem 'rails', '< 5.0.0'
gem 'sass-rails', '~> 5.0.0'
gem 'sprockets-es6'
gem 'font-awesome-rails'
gem 'foundation-rails'

Heres the details of the error:

File to import not found or unreadable: foundation/functions.
Load paths:

Extracted source (around line #58):
// Allows the use of rem-calc() or lower-bound() in your settings
@import 'foundation/functions';

// The default font-size is set to 100% of the browser style sheet (usually 16px)
// for compatibility with browser-based text zoom or user-set defaults.


You might want to revert your foundation-rails gem back to the previous version, or see what's changed because it looks like the foundation/functions asset no longer exists like it used to. They may have just moved it or renamed it.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 79,047+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.