Menu icon Foundation
grunt - error: error reading values after ) --libsass

Is anyone else getting the following error after trying to create a new foundation 5 site with libsass?

Im running OSX Mavericks. I've updated git, node, npm, foundation (gem) ...any advice is appreciated.

Running "sass:dist" (sass) task

Warning: bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
 Use --force to continue.

Aborted due to warnings.
            

         

foundation5OSX Maverickslibsass

Is anyone else getting the following error after trying to create a new foundation 5 site with libsass?

Im running OSX Mavericks. I've updated git, node, npm, foundation (gem) ...any advice is appreciated.

Running "sass:dist" (sass) task

Warning: bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
 Use --force to continue.

Aborted due to warnings.
            

         

Michael Degli-Angeli gave the most helpful answer for this post
Michael Degli-Angeli about 5 years ago

I tried installing the sass vesion without libsass and I got the same error.

I saw somewhere earlier that removing !global helped them, so I tried that and it worked for me. Now both versions work. Is removing !global going to have a negative consequence in the future?

Go to line 13 in:

bower_components/foundation/scss/foundation/_functions.scss

$modules: append($modules, $name) !global; //this causes the error

Remove !global:

$modules: append($modules, $name);

I also updated my sass gem (3.4.3) and I am able to compile.

This post has been closed. No new replies can be added.

Giancarlo Soverini about 5 years ago

Same error here with a windows server 2003.

Darren Woodiwiss about 5 years ago

I'm getting the same issue here, OSX Mavericks.
foundation version v1.0.4
grunt version v0.1.13
bower --version 1.3.9

Term output:

% foundation new test --libsass                                                                                                                                                                                     
Creating ./test
      create  test
Cloning into 'test'...
remote: Counting objects: 154, done.
remote: Total 154 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (154/154), 232.22 KiB | 253.00 KiB/s, done.
Resolving deltas: 100% (51/51), done.
Checking connectivity... done.
Installing dependencies with bower...
         run  npm install from "./test"
npm WARN package.json [email protected] No repository field.

> [email protected] install /Users/MYNAME/Projects/test/node_modules/node-sass
> node build.js

`darwin-x64-v8-3.14` exists; testing

․․․․․․․․․․․․․․․․․․․․․

  24 passing (29ms)

Binary is fine; exiting

> [email protected] install /Users/MYNAME/Projects/test/node_modules/grunt-sass/node_modules/node-sass
> node build.js

`darwin-x64-v8-3.14` exists; testing
\
  16 passing (13ms)

Binary is fine; exiting
[email protected] node_modules/grunt-contrib-watch
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected])

[email protected] node_modules/grunt
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/node-sass
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/grunt-sass
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
         run  grunt build from "./test"
Running "sass:dist" (sass) task
Warning: bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
 Use --force to continue.

Aborted due to warnings.
./test was created 

about 5 years ago

Same here. On Ubuntu 14.04 and getting the same issue when running

 foundation new myproject --libsass

The end result is:

 Running "sass:dist" (sass) task
Warning: bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
 Use --force to continue.

Aborted due to warnings.
./myproject was created

Chuck Mathias about 5 years ago

Also on Ubuntu 14.04. Same problem.

Warning: bower_components/foundation/scss/foundation/functions:13: error: error reading values after )
Use --force to continue.

Jeff about 5 years ago

I'm also getting this error. On line 13 the issue seems to be the '!global'. If you remove this it passes line 13 but gets stuck elsewhere with the same issue.


Running "sass:dist" (sass) task
Warning: /HOMEPATH/Drupal/public/sites/all/themes/opit/scss/vendor/foundation/functions:13: error: error reading values after )
Use --force to continue.

Aborted due to warnings.

Rafi Benkual about 5 years ago

Foundation now supports Sass 3.4. Libsass does not have Sass 3.4 support right now. If you are creating a Libsass project, you can use Sass 3.2 still. If you want to dig into the code and make the needed changes, check this out: Sass 3.4 Compatibility

We put a warning here: http://foundation.zurb.com/docs/sass.html

Michael Degli-Angeli about 5 years ago

I tried installing the sass vesion without libsass and I got the same error.

I saw somewhere earlier that removing !global helped them, so I tried that and it worked for me. Now both versions work. Is removing !global going to have a negative consequence in the future?

Go to line 13 in:

bower_components/foundation/scss/foundation/_functions.scss

$modules: append($modules, $name) !global; //this causes the error

Remove !global:

$modules: append($modules, $name);

I also updated my sass gem (3.4.3) and I am able to compile.

x about 5 years ago

I'm also having this problem with compass

$ compass watch
>>> Change detected at 22:33:38 to: app.scss
    error scss/app.scss (Line 13 of bower_components/foundation/scss/foundation/_functions.scss: Invalid CSS after "...odules, $name) ": expected "}", was "!global;")
   create ../styles/app.css 
>>> Compass is polling for changes. Press Ctrl-C to Stop.

Shane Bell about 5 years ago

So, how do you make a project with Sass 3.2?

Stephen Gehring about 5 years ago

Same error here

Neil Gardose almost 5 years ago

Hello. I'm new to foundation and I'm using rails. I'm using foundation and sass via bundler and I don't know how to access _function.scss in my project. Can anyone help me? Thanks. I'm using ubuntu for my os.

Neil Gardose almost 5 years ago

I've modify the _function.scss and remove the !global. Now it's working but I still don't know if this is the right way and not make any errors in the future.
http://foundation.zurb.com/forum/posts/19222-sass-syntax-error-on-rails

Russell Brown almost 5 years ago

I too am trying to get it up and running on Mac OS X Yosemite. Not sure why, but I cannot find the _functions anywhere. Makes me feel a little dumb. :(

So.... Where is it?

K Lim almost 5 years ago

I ran into this problem as well. I reverted back to sass to 3.3.14. There are some warnings about deprecated stuff when you run compass/sass. But other than that it appears to be working.

Raymond Wright almost 5 years ago

updating gem sass to 3.4.4 and not using libsass/scout for now will fix it. I am using compass with it right now after I couldn't get scout to stop giving errors. It's a matter of waiting for libsass to include support for sass 3.4.4. I would not recommend removing !global as it may be important for future.

Chris Portscheller almost 5 years ago

This worked for me::

$modules: () !default;
@mixin exports($name) {
  @if (index($modules, $name) == false) {
    $modules: append($modules, $name);
    @content;
  }
}

Wilf Horsfall almost 5 years ago

Not working for me with Libsass or Compass. Not at all clear on how to start a new project now, could you tell us, Rafi? How do we revert to Sass 3.2?

Maurice Aubrey over 4 years ago

I think I hit this same problem. I'm very inexperienced with the build tools, so apologies if I'm off base.
But what I did, was edit my bower.json to specify the foundation version (it had installed 5.5, which was causing the problem):

{
  "name": "foundation-libsass-template",
  "dependencies": {
    "foundation": "zurb/bower-foundation#5.4.7"
  }
}

I blew away the existing foundation/ directory and re-ran "bower install." "grunt build" is working now.

Rob Walton over 4 years ago

I've just encountered this issue, as above I reverted to 5.4.7.
Thanks

Chris Ixion over 4 years ago

Similar prob, fixed by upgrading node-sass and grunt-sass. Hope it helps.