autoprefixer-rails: 9.0 Triggering ActionView::Template Error
Rails 5.2 autoprefixer 9.0
All my Rails Capybara tests that try to run with a JavaScript driver give me this:
Failure/Error: = stylesheet_link_tag "application", media: "screen" unless params[:print]
ActionView::Template::Error:
Current ExecJS runtime does't support ES6. Please install latest Node.js.
# /Users/noel/.gem/ruby/2.5.1/gems/autoprefixer-rails-9.0.0/lib/autoprefixer-rails/processor.rb:149:in `runtime'
My system is running the latest node and the latest Sprockets beta, as far as I can tell, so I’m not sure exactly what to upgrade.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 22 (16 by maintainers)
Commits related to this issue
- Downgrade autoprefixer-rails To fix Rails doesn't proccess JS Ref: [9.0 Triggering ActionView::Template Error · Issue #137 · ai/autoprefixer-rails](https://github.com/ai/autoprefixer-rails/issues/13... — committed to gouf/RailsText_tutorial by gouf 6 years ago
- Downgrade autoprefixer-rails To fix Rails doesn't proccess JS Ref: [9.0 Triggering ActionView::Template Error · Issue #137 · ai/autoprefixer-rails](https://github.com/ai/autoprefixer-rails/issues/13... — committed to gouf/RailsText_tutorial by gouf 6 years ago
- Remove therubyracer in favor of nodejs therubyracer has been abandoned by Rails: https://github.com/rails/rails/pull/29285 It is no longer compatible with the latest version of autoprefixer-rails: ht... — committed to sul-dlss-deprecated/was-thumbnail-service by jcoyne 6 years ago
- Remove therubyracer in favor of nodejs therubyracer has been abandoned by Rails: https://github.com/rails/rails/pul l/29285 It is no longer compatible with the latest version of autoprefixer-rails... — committed to sul-dlss-deprecated/was-registrar by jcoyne 6 years ago
- Remove therubyracer in favor of nodejs therubyracer has been abandoned by Rails: https://github.com/rails/rails/pull/29285 It is no longer compatible with the latest version of autoprefixer-rails: ht... — committed to sul-dlss/sul_pub by jcoyne 6 years ago
- Remove therubyracer in favor of nodejs therubyracer has been abandoned by Rails: https://github.com/rails/rails/pull/29285 It is no longer compatible with the latest version of autoprefixer-rails: ht... — committed to sul-dlss/sul_pub by jcoyne 6 years ago
- Get semantic-ui-rails-LESS to work Lots of errors in trying to get here. Steps here would load the JS, but not the stylesheets: https://stackoverflow.com/questions/37283642/how-do-i-set-up-a-rails-a... — committed to breadoliveoilsalt/garden-tracker by breadoliveoilsalt 6 years ago
Replace
therubyracer
bymini_racer
inGemfile
:And then:
Rails 5.1.6 autoprefixer 9.0 I have same error after modifying sass styles reverting to 8.6.5 solved the issue
@DrobyshevAlex if you can’t use
mini_racer
you should use Node.js as runtime for ExecJS. Sorry, TheRubyRacer just can’t run Autoprefixer JS.