Antoine Bourlart
Antoine Bourlart

Reputation: 781

Functions may not be defined within control directives other mixins

I have a node project and when i start the command line npm install, i have this error :

Message: node_modules\compass-mixins\lib\compass\functions_lists.scss Error: Functions may not be defined within control directives or other mixins. on line 81 of node_modules/compass-mixins/lib/compass/functions/_lists.scss

@function compact($vars...) {

On my last project, with the same package.json i don't have any error. Have you a solution ?

Thank you

Upvotes: 0

Views: 1497

Answers (1)

vaxXxa
vaxXxa

Reputation: 101

You have two options:

  1. Run npm install [email protected].
  2. Add "node-sass": "3.4.2" into your package.json and then run npm install.

Upvotes: 1

Related Questions