Comments (10)
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.
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.
libsass doesn't support .sass
.
from sass-brunch.
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.
gulp-sass uses libsass too and has no problems with .sass
syntax
from sass-brunch.
I think node-sass just needs indentedSyntax: true
to work https://github.com/sass/node-sass#indentedsyntax
from sass-brunch.
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.
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.
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.
Thanks @realistschuckle!
from sass-brunch.
Related Issues (20)
- Provide examples on brunch-config.js HOT 2
- Tag latest changes on master HOT 1
- Sass-brunch is taking too long to compile HOT 10
- Failed postinstall script on Linux-x64-57 ( node-sass dependency needs to be updated) HOT 5
- "BrunchError: Failed to read file" when editing sass file
- dead?
- Change node-sass dependency to peerDependency
- NPM Registry out of date with Github repo
- Can't install HOT 1
- Latest release breaking production HOT 5
- Latest release causes build to stuck HOT 5
- Issue with watching underscore files with 2.10.7 HOT 2
- scss modules / partial (_example.scss) not recompiled during brunch watch process HOT 3
- Partial .scss files are compiled although they were not included in main .scss file HOT 10
- Issue with node 12 HOT 4
- npm install error HOT 6
- please release updated npm package HOT 2
- Source map generation failure on Windows HOT 12
- Source map generation error when deploying to Heroku HOT 5
- Readme refers to unused Sass implementations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sass-brunch.