Home>

When I tried to check the result with rails s while creating the site, I got a Sass :: SyntaxError.
When I investigated the content of the error, I found two solutions and tried both, but there was no particular change.
・ Added protospace to import
· Find what i am running from the instances on the AWS dashboard and restart

If anyone knows a solution, I would appreciate it if you could let me know.
!!Ming] (f437d4956d3cd59b5d1f8174530aeb39.png)

source'https://rubygems.org'
gem'rails', '5.1.6'
gem'bootstrap','~>4.1.1'
gem'puma', '3.9.1'
gem'sass-rails', '5.0.6'
gem'uglifier', '3.2.0'
gem'coffee-rails', '4.2.2'
gem'jquery-rails', '4.3.1'
gem'turbolinks', '5.0.1'
gem'jbuilder', '2.7.0'
gem'therubyracer', platforms :: ruby
group: development,: test do
  gem'sqlite3', '1.3.13'
  gem'byebug', '9.0.6', platform:: mri
end
group: development do
  gem'web-console', '3.5.1'
  gem'listen', '3.1.5'
  gem'spring', '2.0.2'
  gem'spring-watcher-listen', '2.0.1'
end
group: test do
  gem'rails-controller-testing', '1.0.2'
  gem'minitest', '5.10.3'
  gem'minitest-reporters', '1.1.14'
  gem'guard', '2.16.2'
  gem'guard-minitest', '2.4.4'
end
group: production do
  gem'pg', '0.20.0'
end
# In Windows environment you need to include a gem called tzinfo-data
gem'tzinfo-data', platforms: [: mingw,: mswin,: x64_mingw,: jruby]
code
/ *
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_ * statement.
 * It is generally better to create a new file per style scope.
 *
 * = require_tree.
 * = require_self
 * /
@import "bootstrap-sprockets";
@import "bootstrap";
@import "protospace";
code
<! DOCTYPE html>
<html>
<head>
  <% = stylesheet_link_tag'application', media:'all','data-turbolinks-track' =>true%>
  <% = javascript_include_tag'application','data-turbolinks-track' =>true%>
  <% = csrf_meta_tags%>
  <% = render'layouts/shim'%>
</head>
<body>
    
    <% = yield%>
    
</body>
</html>
<% = button_to'TWEET', {: action =>"new"}, {: method =>: get}%>
code
  • Answer # 1

    After adding the following description to the header, it works.