Skip to content

sass-lint lodash syntax error in 1.3.2 #69

@cbuchert

Description

@cbuchert

I'm implementing gulp-sass-lint exactly as described in readme.md:

var sassLint = require('gulp-sass-lint'),
  sassLintOptions = {/* All those sweet action sass-lint options */};

gulp.task('default', function() {
  // Task setup stuff.
  .sassLint(sassLintOptions)
  .sassLint.format()
 // Task finish stuff.
});

I'm running on a Vagrant box. In versions between 1.2.0 through 1.3.1, everything works great. In version 1.3.2, I'm getting the following error:

/vagrant/node_modules/sass-lint/node_modules/lodash/lodash.js:115
  var reFlag
            
SyntaxError: Invalid or unexpected token
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/vagrant/node_modules/sass-lint/node_modules/globule/lib/globule.js:14:9)
    at Module._compile (module.js:570:32)

As a resolution to this issue, I forced 1.3.1 in my own package.json. Just figured I'd pass this along as an FYI. Thanks for making this package. We freaking love it. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions