Giter VIP home page Giter VIP logo

Comments (7)

rafaelfranca avatar rafaelfranca commented on June 23, 2024 2

That is not the fix. We need to report the bug to autoprefixer-rails their code is wrong.

from execjs.

rafaelfranca avatar rafaelfranca commented on June 23, 2024

Can you please provide a sample application that reproduces the error?

from execjs.

Dvelezs94 avatar Dvelezs94 commented on June 23, 2024

@rafaelfranca the piece of code i want to run is this

app_1      | ActionView::Template::Error (uninitialized constant ExecJS::Runtimes::RubyRacerRuntime):
app_1      |     70:     <div class="container-fluid p-0">
app_1      |     71:     <div class="row no-gutters">
app_1      |     72:
app_1      |     73:         <div class="col-lg-6 order-lg-2 text-white showcase-img" style="background-image: url(<%= asset_path('bg-showcase-1.jpg') %>);"></div>
app_1      |     74:         <div class="col-lg-6 order-lg-1 my-auto showcase-text">
app_1      |     75:         <h2>Fully Responsive Design</h2>
app_1      |     76:         <p class="lead mb-0">When you use a theme created by Start Bootstrap, you know that the theme will look great on any device, whether it's a phone, tablet, or desktop the page will behave responsively!</p>
app_1      |
app_1      | app/views/pages/index.html.erb:73:in `_app_views_pages_index_html_erb__1509257406324096851_47129302344520'

from execjs.

rafaelfranca avatar rafaelfranca commented on June 23, 2024

Right, but with no way to reproduce we can't do anything, this is why I'm asking an new application that reproduces this error. Maybe the problem is in your code.

from execjs.

Dvelezs94 avatar Dvelezs94 commented on June 23, 2024

@rafaelfranca Ive created this repo with a sample app where the issue is the same. https://github.com/Dvelezs94/racerissue . I also included a helper script so u can follow the same steps im doing (on the readme)

Prerequisites:

  • Docker
  • Docker-compose

Steps:
1.- start
2.- create db
3.- visit localhost (you should see the error here)

Thanks in Advance!

from execjs.

rafaelfranca avatar rafaelfranca commented on June 23, 2024

This is a bug in autoprefixer-rails ai/autoprefixer-rails@e572cb7. This runtime that it is looking for doesn't exist. It is ExecJS::RubyRacerRuntime.

from execjs.

Dvelezs94 avatar Dvelezs94 commented on June 23, 2024

@rafaelfranca Thank you! that was the issue

So for the people that has this issue.
Replace gem 'therubyracer' for gem 'mini_racer', platforms: :ruby

from execjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.