Dockerで環境構築し、アプリを作成しコンテナ内でrspecを実行するとエラーが発生。
(エラー文:ActionView::Template::Error:
Autoprefixer doesn’t support Node v8.17.0. Update it.)
Autoprefixer機能はNode.jsのバージョン4.8.2ではサポートしておりませんとのことでどこかでアンインストールしてしまったのではと思い、確認するも存在はしている。
gem 'therubyracer'を入れ直すも解決せず、解決の糸口を掴めず途方に暮れてしまった為ご質問させていただきました。
このエラーに対しての解決策をご教授いただきたいです。
関係ありそうなソースコードを添付致します、初心者のため足りない情報があればお申し付けください。
1、show.html(呼び出し側)
<section class="mainContent clearfix"> <div class="container"> <%= render 'related_products', related_products: @related_products %> </div> </section>
2、application.html
<html> <head> <title><%= full_title(yield(:title))%></title> <%= csrf_meta_tags %> <%= stylesheet_link_tag 'application', media: 'all' %> <%= stylesheet_link_tag "application", 'https://fonts.googleapis.com/css?family=Oxygen:400,300,700', :media => "all" %> <%= render 'layouts/shim' %> </head> <body> <div class="main-wrapper"> <%= render 'layouts/header' %> <%= yield %> <%= render 'layouts/footer' %> </div> <%= javascript_include_tag 'application' %> </body> </html>