Basically I have a structure that used to work perfectly in 3.0.x and now it breaks with undefined variable errors.
undefined variable
It's a sass file. Use @import in application.css.sass instead of require. require is for plain css or template engines that don't have an import system.
@import
application.css.sass
require