GruntLauncher icon indicating copy to clipboard operation
GruntLauncher copied to clipboard

Gulp: Cannot parse gulpfile :(

Open sinedied opened this issue 9 years ago • 1 comments

When I right click on my gulpfile.js, the context submenu show, with the first 'gulp' task, the second being 'Gulp: Cannot parse gulpfile ' :-(

The first default gulp tasks works, but I don't know what is wrong in my gulpfile since I have no trace of the exception that was raised during the parsing. The gulp tasks works perfectly from command line.

Here is my gulpfile: https://gist.github.com/sinedied/532ae51f84a5f8fb8fb1

Thanks for your help.

sinedied avatar Apr 17 '15 12:04 sinedied

Hi! sorry for the problem and the delay. I've seen the gulpfile and the problem is in the line

var $ = require('gulp-load-plugins')();

and then

$.jasmineLivereloadTask

as the plugin tries to parse the file he is unable to understand this syntax. If you explictly require the task does it work?

Bjornej avatar Apr 24 '15 17:04 Bjornej