Coder Social home page Coder Social logo

Comments (10)

paulmillr avatar paulmillr commented on June 8, 2024

The plugin should automatically detect the correct syntax. Something is wrong. The tests are passing though. Would you mind sharing the file with us?

from sass-brunch.

alp82 avatar alp82 commented on June 8, 2024

I forgot to mention that i use the native libsass library, the ruby version is not installed.

I created a minimal test for that. My file (throws the above error):

div
   color: red

This works though:

div {
  color: red;
}

from sass-brunch.

paulmillr avatar paulmillr commented on June 8, 2024

libsass doesn't support .sass.

from sass-brunch.

paulmillr avatar paulmillr commented on June 8, 2024

Ah, sorry — just checked the source code. It seems it actually does support it with the sass2scss addition. We'll need to take a look.

from sass-brunch.

alp82 avatar alp82 commented on June 8, 2024

gulp-sass uses libsass too and has no problems with .sass syntax

from sass-brunch.

tamlyn avatar tamlyn commented on June 8, 2024

I think node-sass just needs indentedSyntax: true to work https://github.com/sass/node-sass#indentedsyntax

from sass-brunch.

gregtap avatar gregtap commented on June 8, 2024

I also get this issue with 1.8.10. Even with

    sass: {
        mode: "native",
        options: {
            indentedSyntax: true  // or "true"
        }
    }

15 Aug 07:06:48 - error: Compiling of 'ondemand_web/static/css/base.sass' failed. invalid top-level expression

#foobar
    opacity: 0
    position: fixed
    bottom: -150px

from sass-brunch.

hayesgm avatar hayesgm commented on June 8, 2024

Fixed this by bumping to node-sass 3.0, which currently isn't supported on the mainline of sass-brunch. You can fork this and bump the version of node-sass, or just add the following version which is a current pull request to this library (see #84).

package.json

...
"dependencies": {
  "node-sass": "^3.3.2",
  "sass-brunch": "git+ssh://[email protected]:leadtrader/sass-brunch.git",
  ...
}

EDIT

See #86, I would suggest using the branch hayesgm/sass-brunch#node-sass-v3:

package.json

...
"dependencies": {
  "node-sass": "^3.3.2",
  "sass-brunch": "hayesgm/sass-brunch#node-sass-v3",
  ...
}

from sass-brunch.

realistschuckle avatar realistschuckle commented on June 8, 2024

Looks like someone can close this issue due to 347c95e.

Just tested it with the current release and it compiles the offending SASS as reported by @coulix.

from sass-brunch.

es128 avatar es128 commented on June 8, 2024

Thanks @realistschuckle!

from sass-brunch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.