Skip to content

run-sequence error #1504

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

Closed
Jbz797 opened this issue Dec 18, 2015 · 2 comments
Closed

run-sequence error #1504

Jbz797 opened this issue Dec 18, 2015 · 2 comments
Labels
Milestone

Comments

@Jbz797
Copy link

Jbz797 commented Dec 18, 2015

Hi all!
After executing the command "gulp serve" i get this error:

[11:04:07] Requiring external module babel-core/register
[11:04:07] Using gulpfile ~/Dropbox/Node_Angular/***/gulpfile.babel.js
[11:04:07] Starting 'serve'...
[11:04:07] Starting 'clean:tmp'...
[11:04:07] Starting 'constant'...
[11:04:07] Finished 'constant' after 62 ms
[11:04:07] Finished 'clean:tmp' after 73 ms
[11:04:07] Starting 'lint:scripts'...
[11:04:07] Starting 'lint:scripts:client'...
[11:04:07] Starting 'lint:scripts:server'...
[11:04:07] Starting 'inject'...
[11:04:07] 'inject' errored after 80 μs
[11:04:07] Error: Task inject:css is listed more than once. This is probably a typo.
at /home/***/Dropbox/Node_Angular/***/node_modules/run-sequence/index.js:24:11
at Array.forEach (native)
at verifyTaskSets (/home/***/Dropbox/Node_Angular/***/node_modules/run-sequence/index.js:13:11)
at /home/***/Dropbox/Node_Angular/***/node_modules/run-sequence/index.js:32:4
at Array.forEach (native)
at verifyTaskSets (/home/***/Dropbox/Node_Angular/***/node_modules/run-sequence/index.js:13:11)
at runSequence (/home/***/Dropbox/Node_Angular/***/node_modules/run-sequence/index.js:94:2)
at Gulp.<anonymous> (/home/***/Dropbox/Node_Angular/***/gulpfile.babel.js:148:5)
at module.exports (/home/***/Dropbox/Node_Angular/***/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/home/***/Dropbox/Node_Angular/***/node_modules/orchestrator/index.js:273:3)
[11:04:07] 'serve' errored after 142 ms
[11:04:07] Error in plugin 'run-sequence'
Message:
    An error occured in task 'inject'.
[11:04:07] 'lint:scripts' errored after 69 ms
[11:04:07] Error in plugin 'run-sequence'
Message:
    An error occured in task 'serve'.
[11:04:07] 'lint:scripts' errored after 69 ms
[11:04:07] Error in plugin 'run-sequence'
Message:
    An error occured in task 'inject'.

client/app/app.constant.js
  line 2  col 3   Missing "use strict" statement.
  line 2  col 46  Strings must use singlequote.
  line 4  col 22  Strings must use singlequote.
  line 5  col 16  Strings must use singlequote.
  line 6  col 16  Strings must use singlequote.
  line 7  col 15  Strings must use singlequote.
  line 8  col 16  Strings must use singlequote.

  ✖  1 error
  ⚠  6 warnings

[11:04:08] Finished 'lint:scripts:client' after 506 ms
[11:04:08] Finished 'lint:scripts:server' after 501 ms

Could you help me?
Thanks,

@Awk34
Copy link
Member

Awk34 commented Dec 18, 2015

I'm pretty sure I know what's going on here. You must have selected plain CSS instead of a transpiler. Take a look at this code: https://github.com/angular-fullstack/generator-angular-fullstack/blob/3.1.1/app/templates/gulpfile.babel(gulp).js#L176-L207

There's one Gulp task called inject:css that injects a link tag for each CSS file into your index.html. Then there's inject:<%= styleExt %>, which once scaffolding is done would be another inject:css in your case, but could be inject:scss, inject:less, or inject:styl for the transpiler options. This task is supposed to insert @import foo.scss, etc files into the main app.scss, etc file. In the case of just using vanilla CSS, though, you won't need this second task. It will also collide with the first task.

@Awk34 Awk34 added the bug label Dec 18, 2015
@Awk34 Awk34 added this to the Soon milestone Dec 18, 2015
@Jbz797
Copy link
Author

Jbz797 commented Dec 19, 2015

Thank you very much its works!

I also delete the third 'inject' in line 160: https://github.com/angular-fullstack/generator-angular-fullstack/blob/3.1.1/app/templates/gulpfile.babel%28gulp%29.js#L160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants