Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Task watchui can't support dependencies that is not an array of strings #2653

Closed
JamieWritesCode opened this issue Jul 16, 2015 · 2 comments

Comments

@JamieWritesCode
Copy link

Another issue with importing tasks from main repo into my own gulp file. Note that I've changed my task name to watchui rather than watch ui. Throws this exception:

C:\Users\jamie_000\OneDrive\Crucible\Cairns Key\website\cairnskeyTheme>gulp watchui
C:\Users\jamie_000\OneDrive\Crucible\Cairns Key\website\cairnskeyTheme\node_modules\gulp\node_modules\orchestrator\index.js:47
                        throw new Error('Task '+name+' can\'t support dependencies that is not an a
                              ^
Error: Task watchui can't support dependencies that is not an array of strings
    at Gulp.Orchestrator.add (C:\Users\jamie_000\OneDrive\Crucible\Cairns Key\website\cairnskeyTheme\node_modules\gulp\node_modules\orchestrator\index.js:47:10)
    at Object.<anonymous> (C:\Users\jamie_000\OneDrive\Crucible\Cairns Key\website\cairnskeyTheme\gulpfile.js:32:6)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Liftoff.handleArguments (C:\Users\jamie_000\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:116:3)
    at Liftoff.<anonymous> (C:\Users\jamie_000\AppData\Roaming\npm\node_modules\gulp\node_modules\liftoff\index.js:192:16)

Seems to be fixed by removing the text descriptions of the tasks from the suggested code like so:

// import task with a custom task name
gulp.task('watch ui', watch));
gulp.task('build ui', build));
@jlukic
Copy link
Member

jlukic commented Jul 16, 2015

Yeah, i've revised the readme The second parameter is for people using gulp help

@fholzer
Copy link

fholzer commented Jul 19, 2015

Seems like there's still an issue with this...

  1. gulp-help is still required, because your commit added gulp.task with the gulp-help parameter to tasks/collections/rtl.js
  2. The documentation for this needs a minor fix too.

fholzer added a commit to fholzer/Semantic-UI-Docs that referenced this issue Jul 19, 2015
When requiring a file module relative to the calling file, path needs to be prefixed with "./".
See Semantic-Org/Semantic-UI#2653
fholzer added a commit to fholzer/Semantic-UI that referenced this issue Jul 19, 2015
fholzer added a commit to fholzer/Semantic-UI-Issue-Showcase that referenced this issue Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants