Hello. I’m using ActiveAdmin as an admin panel for my plugin. In newer versions of Discourse I’m getting:
File to import not found or unreadable: active_admin/mixins. Load paths: /Users/tomsmyth/Documents/sassafras-local/lena-mamykina/discourse/app/assets/stylesheets /Users/tomsmyth/Documents/sassafras-local/lena-mamykina/discourse/app/assets/stylesheets ...
The same path is repeated 37 times.
The offending code is in an app/assets/active_admin.css.scss file that ActiveAdmin added:
@import "active_admin/mixins"; @import "active_admin/base";
From what I can tell, the files are not being found because DiscourseSassImporter has its
root parameter hard coded to the above value, so Sass::Tree::ImportNode is searching the same path 37 times. I’m not sure why this was done, but it seems that it’s preventing Sass from searching all the correct load paths and resulting in the above error.