-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExecJS::ProgramError in Welcome#index #1
Comments
I changed
to
and it's done !! |
Yup it seems to work, thanks! I will list here all the other solutions that was found for this problem (stackOverFlow). Solution 1 - replacing application by defaultReplacing the <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> to <%= stylesheet_link_tag 'default', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'default', 'data-turbolinks-track': 'reload' %> It should now be working fine. Although I've read that there might be an issue when running javascript while using "default" instead of application. Solution 2 - changing coffee script's version in the GemfileAdd in blog/GemFile the coffee-script-source v1.8.0 (v1.9.0 does not work on Windows)
Stop the server (if it was running) and do:
It should now be working fine. Solution 3 - Installing nodeJS and ExecJS (Not tested)With Node.js
|
I'm sorry to comment the closed topic, but I am not really happy with solution options. I'm on Windows 10 with Ruby 2.4.1 , gem 2.6.11, rails 5.1.4 |
Allo @najuste , Thanks for your question, I added here some more details. I don't know if you're following the ruby on rails tutorial, it's a good read ! 😉 For Solution 1You should find it in Here it could be clearer, I have the file application.html.erb on this repository. There you replace <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> However I really do advise to go with solution 2. For Solution 2Here the problem is solved when you change in the You will need to stop the server then do a For Solution 3Argh I didn't try, but I think there's maybe more to it than what I wrote eheh. |
Thanks for a quick reply. Solution 2 I do not have the So, I manually added coffee script source in a Gemfile as given and ran bundle install. And when I tried to run the server got the same in red asking to update.. and so server was not started. |
@najuste |
Gemfile
|
Allo, Try adding that to your gemfile like at line 23:
And now it will download and install the right version of coffe script. Tell me how it goes. |
:) I did add, as I've posted before here up, and since server could not be started (requesting to update the coffee-script-source bundle, and also run bundle install...) I have removed it again. |
ahah ok, good I'm glad it worked 😉 |
Works perfectly....I've replaced |
none ofthese solutions is working for me pls HELP ! |
Have you tried this?
|
Happens on windows following the rails tuto between:
When restarting the server with
rails server
in the correct folder, I still get this issueExecJS::ProgramError in Welcome#index
when connecting to http://localhost:3000/welcome/indexThe text was updated successfully, but these errors were encountered: