undefined method `show_deprecation_message!' for AutoprefixerRails:Module
noraj opened this issue ยท 4 comments
I have this error in my CI pipeline since commit 43393d8 from PR #173 introduced by v9.8.6.2.
undefined method `show_deprecation_message!' for AutoprefixerRails:Module
error public/stylesheets/site.css
undefined method `show_deprecation_message!' for AutoprefixerRails:Module
/builds/noraj/cv_alexandre_zanni/vendor/ruby/2.7.0/gems/autoprefixer-rails-9.8.6.2/lib/autoprefixer-rails/processor.rb:23:in `process'
/builds/noraj/cv_alexandre_zanni/vendor/ruby/2.7.0/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:83:in `prefix'
/builds/noraj/cv_alexandre_zanni/vendor/ruby/2.7.0/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:74:in `process'
/builds/noraj/cv_alexandre_zanni/vendor/ruby/2.7.0/gems/middleman-autoprefixer-2.10.1/lib/middleman-autoprefixer/extension.rb:60:in `call'
@noraj Don't know if this helps you or not, but had the same issue. Had just created a project with the same gemfile days earlier and it was working, created one today and had the same error. Diffing the two gemfiles showed that the working one had autoprefixer-rails at 9.8.6.1
, new one with this missing show_deprecation_method had it at 9.8.6.2
.
So, I set gem 'autoprefixer-rails', '9.8.6.1'
in my Gemfile, ran bundle update autoprefixer-rails
, and all's well.
@mknadler Yeah I know this workaround the problem was introduced by 9.8.6.2 so forcing 9.8.6.1 for example works. But in my case autoprefixer-rails is used by middleman-autoprefixer a sub-system of middleman. That's why I opened middleman/middleman-autoprefixer#38. I can't do a thing until either this repo is fixed or middleman introduce a workaround.