Skip to content

Precompilation fails in production using Refinery 4 and 5.2 #7

@Obi-TOB

Description

@Obi-TOB

RAILS_ENV=production bundle exec rake assets:precompile

[...]
[SassC::FunctionsHandler] undefined method `[]' for nil:NilClass
rake aborted!
SassC::SyntaxError: Error: error in C function asset-path: undefined method `[]' for nil:NilClass
        on line 5 of ../../../../.rbenv/versions/2.5.1/gemsets/rails52/bundler/gems/refinerycms-tinymce/app/assets/stylesheets/tinymce.scss, in function `asset-path`
        from line 5 of ../../../../.rbenv/versions/2.5.1/gemsets/rails52/bundler/gems/refinerycms-tinymce/app/assets/stylesheets/tinymce.scss
>> @import url(asset-path("tinymce/skins/lightgray/content.min.css"));

   ------------^
/home/thomas/.rbenv/versions/2.5.1/gemsets/rails52/bundler/gems/refinerycms-tinymce/app/assets/stylesheets/tinymce.scss:5
/home/thomas/.rbenv/versions/2.5.1/gemsets/rails52/gems/sassc-1.12.1/lib/sassc/engine.rb:47:in `render'
/home/thomas/.rbenv/versions/2.5.1/gemsets/rails52/gems/sassc-rails-1.3.0/lib/sassc/rails/template.rb:34:in `block in call'
/home/thomas/.rbenv/versions/2.5.1/gemsets/rails52/gems/sprockets-3.7.2/lib/sprockets/utils.rb:171:in `module_include'
/home/thomas/.rbenv/versions/2.5.1/gemsets/rails52/gems/sassc-rails-1.3.0/lib/sassc/rails/template.rb:33:in `call'
/home/thomas/.rbenv/versions/2.5.1/gemsets/rails52/gems/sprockets-3.7.2/lib/sprockets/sass_processor.rb:30:in `call'
[...]

I'm stuggling to find out what the issue might be: Maybe sine change in the dependency management in the asset pipeline...

Strangly RAILS_ENV=production bundle exec rake assets:precompile

works fine, but I can't see any setting that might affect this.

Any idea where to look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions