-
-
Notifications
You must be signed in to change notification settings - Fork 445
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 after adding bootstrap gem #157
Comments
I should point out that in my steps above I didn't install |
I also get the same error. I wrote the codes as the page below says. |
Please keep this issue open. I can confirm I am getting the same error as @jasonjoh above. |
I removed 'duktape' from the gemfile and it seems to have resolved the issue. At least for the one page I was trying to load. |
When I ran the same code on Mac, it worked well, so this problem maybe is caused by x64-mingw32(maybe sqlite3(x64-mingw32)?). |
I installed node.js in my Win10 and removed 'duktape' from the gemfile. |
@yasunari89 I can say this is not an issue with sqlite3 as I explicitly use Postgres for everything I do. @leightjohnson93 will try this tonight and see where things go. |
If you look into other similar issues involving Exejs you might found out that # In `config/boot.rb`
ENV['EXECJS_RUNTIME'] = 'Node' You can find more info in #152 , #153 and #155 . However a PR is under review that will possibly resolve the issue, thanks to @judofyr |
The PR is actually rails/execjs#77. |
I am having the same issue here on linux.
Steps to reproduce: Also I tried |
I have a question... but iof youi remove this gem, what will be its possible consequence ? |
@miguelcarrasco94. As long as you have Node.js installed locally everything should work fine. |
Same problem here. But works fine after installing Node in windows 10. |
Thanks, seem to work for now! |
@KapilSachdev Thanks for your notes. I want to know if this problem is solved right now? because I'm still getting the error while the PR you mentioned is merged. (And I solved by installing NodeJS and remove |
@cqcn1991 ActionView::Template::Error (identifier '(function(opts, pluginOpts) {return eval(process' undefined): What is the version of execjs you are using? Can you also provide the definition of the method |
@KapilSachdev I just get away with it by your approach, commenting out |
Figured it was worth mentioning. I'm running Ruby 2.5.5, Rails 5.2.3, Win10. Node.js was already installed on my machine, ran into This was occurring after I installed I commented out Note: I did install |
After adding the bootstrap gem to my brand new Rails app and importing it in application.scss, my pages fail with
Steps to reproduce:
Run
rails new ruby-test
CD to
ruby-test
, edit GemfileChange
sqlite3
line to load from GitHub (for Ruby 2.5 on Windows compatibility):Run
bundle install
Run
rails generate controller Home index
Run
rails server
Browse to http://localhost:3000/home/index and verify the page renders
Add bootstrap to Gemfile, bundle install
Rename
application.css
toapplication.scss
, replace contents of file with:Restart server
Browse to http://localhost:3000/home/index, see error.
The text was updated successfully, but these errors were encountered: