Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExecJS::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-testCD to
ruby-test, edit GemfileChange
sqlite3line to load from GitHub (for Ruby 2.5 on Windows compatibility):Run
bundle installRun
rails generate controller Home indexRun
rails serverBrowse to http://localhost:3000/home/index and verify the page renders
Add bootstrap to Gemfile, bundle install
Rename
application.csstoapplication.scss, replace contents of file with:Restart server
Browse to http://localhost:3000/home/index, see error.