nathanvda / cocoon

Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms
http://github.com/nathanvda/cocoon
MIT License
3.08k stars 382 forks source link

Issue with application.html.haml when running rails s #621

Closed loso-nd closed 2 years ago

loso-nd commented 2 years ago

Hi, I am having a similar issue with my code. I tried following along above, but have not been able to resolve this issue. Any suggestions?

Current Error Sass::SyntaxError - Invalid CSS after "...ass}: #{$value}": expected "{", was ";":

Indicated error exist here line 6: app/views/layouts/application.html.haml Line 6: = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true

application.html.haml

!!!
%html
  %head
    %title EffortForecast
    = javascript_include_tag "//www.google.com/jsapi", "chartkick"
    = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  %body 
    = render 'layouts/login_modal' 
    %section 
      = render 'layouts/header' 
    = content_for :subnav
    %section.container-fluid
      .flash-messages= render 'layouts/flash_messages'
      = yield

I have also posted this question on stack Overflow [here

](https://stackoverflow.com/questions/72396489/rails-s-error-invalid-css-after-ass-value-expected-was)

Originally posted by @loso-nd in https://github.com/nathanvda/cocoon/issues/409#issuecomment-1138890689

nathanvda commented 2 years ago

Not really sure how this is related to the cocoon gem, I added a comment on your SO question, hopefully pointing you in the right direction. Stackoverflow seems better suited for this question anyway, so I will close this issue.

loso-nd commented 2 years ago

Thank you Ill check it out.