Repository: consuldemocracy/consuldemocracy

Issue #5490: Error messages when NPM dependencies aren't met are not descriptive
Created: 2024-04-12T11:14:32Z
User Story
I am trying to deploy a local instance of consuledemocracy and if fails with Sass::CompileError
Description
My system is an Ubuntu 22.04 and i use the following versions:
Rails v6.1.7.7
NodeJS v18.18.2
PSQL v14.11
Ruby v3.2.3
I have followed the steps for the local installation and although the server can be deployed (bin/rails server -b 0.0.0.0), when visiting localhost i get the following error

when i run bin/rails assets:precompile i get:
singular@euprojects: ~/consul/consuldemocracy$ bin/rails assets:precompile
rails aborted!
SassC::SyntaxError: Error: Can't find stylesheet to import. (SassC::SyntaxError)
  ╷
1 │ @import "sassc-embedded-import:19";
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
  sassc-embedded-import:18 1:9                                                        @import
  /home/singular/consul/consuldemocracy/app/assets/stylesheets/application.scss 10:9  root stylesheet

Caused by:
Sass::CompileError: Can't find stylesheet to import. (Sass::CompileError)

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)


Current State
Seems to me that a stylesheet is missing but I can't find any information online

Duplicate issue #5656: Error running ConsulDemocracy after following the installation docs on macOS
Created: 2024-08-19T00:52:38Z
SassC::SyntaxError in Welcome#indexShowing /Users/mokhtarmegherbi/gov/consuldemocracy/app/views/layouts/_common_head.html.erb where line #9 raised:Error: Can't find stylesheet to import.
�[34m  ╷�[0m
�[34m1 │�[0m @import �[31m"sassc-embedded-import:273"�[0m;
�[34m  │�[0m �[31m        ^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[34m  ╵�[0m
  sassc-embedded-import:272 1:9                                                            @import
  sassc-embedded-import:foundation_and_overrides.scss 10:9                                 @import
  sassc-embedded-import:32 1:9                                                             @import
  /Users/mokhtarmegherbi/gov/consuldemocracy/app/assets/stylesheets/application.scss 18:9  root stylesheetExtracted source (around line #9):
7 8 9 10 11 12 | <%= stylesheet_link_tag "application-rtl" %> <% else %>   <%= stylesheet_link_tag "application" %> <% end %> <%= javascript_include_tag "application", "data-turbolinks-track" => "reload" %> <%= csrf_meta_tags %>
-- | --
Trace of template inclusion: #<ActionView::Template app/views/layouts/application.html.erb locals=[]>Rails.root: /Users/mokhtarmegherbi/gov/consuldemocracyApplication Trace | Framework Trace | Full Traceapp/views/layouts/_common_head.html.erb:9app/views/layouts/application.html.erb:4app/controllers/application_controller.rb:50:in `switch_locale'SassC::SyntaxError in Welcome#index
Showing /Users/mokhtarmegherbi/gov/consuldemocracy/app/views/layouts/_common_head.html.erb where line #9 raised:
Error: Can't find stylesheet to import.
�[34m  ╷�[0m
�[34m1 │�[0m @import �[31m"sassc-embedded-import:273"�[0m;
�[34m  │�[0m �[31m        ^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[34m  ╵�[0m
sassc-embedded-import:272 1:9                                                            @import
sassc-embedded-import:foundation_and_overrides.scss 10:9                                 @import
sassc-embedded-import:32 1:9                                                             @import
/Users/mokhtarmegherbi/gov/consuldemocracy/app/assets/stylesheets/application.scss 18:9  root stylesheet
Extracted source (around line #9):
7
8
9
10
11
12
<%= stylesheet_link_tag "application-rtl" %>
<% else %>
<%= stylesheet_link_tag "application" %>
<% end %>
<%= javascript_include_tag "application", "data-turbolinks-track" => "reload" %>
<%= csrf_meta_tags %>
Trace of template inclusion: #<ActionView::Template app/views/layouts/application.html.erb locals=[]>
Rails.root: /Users/mokhtarmegherbi/gov/consuldemocracy
Application Trace | Framework Trace | Full Trace
app/views/layouts/_common_head.html.erb:9
app/views/layouts/application.html.erb:4
app/controllers/application_controller.rb:50:in `switch_locale'

Closing comment (2024-08-19T11:34:38Z): Hi, @emothek 😄.
This might be a duplicate of #5490 🤔. Have you run bin/setup (or npm install)?