I'm making a new RoR application while trying to use the bootstrap gem but I've ran into some problems when running it for the first time. Looks like Ruby is having a hard time including the scss file
ExecJS::ProgramError in Visitor#index
Showing */app/views/layouts/guest.erb where line #8 raised:
identifier '(function(opts, pluginOpts) {return eval(process' undefined
Guest.erb
<!DOCTYPE html>
<html>
<head>
<title>FooBar</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= yield %>
</body>
</html>
application.scss
* ...........
* It is generally better to create a new file per style scope.
*
*/
@import "bootstrap";
Gem File
ruby '2.4.4'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
#Bootstrap
gem 'bootstrap', '~> 4.1.1'