Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.
This repository was archived by the owner on May 4, 2020. It is now read-only.

Assertion error on default task launch #19

@lusimeon

Description

@lusimeon

Error

When I run the default gulp task, the following assertion error throws:

[12:04:08] Starting 'default'...
[12:04:08] 'default' errored after 4.31 ms
[12:04:08]   Error: AssertionError [ERR_ASSERTION]: Task never defined: scripts-lint

  - normalizeArgs.js:15 getFunction
    [studiometa-gutenberg]/[undertaker]/lib/helpers/normalizeArgs.js:15:5

  - index.js:20 map
    [studiometa-gutenberg]/[arr-map]/index.js:20:14

  - normalizeArgs.js:22 normalizeArgs
    [studiometa-gutenberg]/[undertaker]/lib/helpers/normalizeArgs.js:22:10

  - series.js:13 Gulp.series
    [studiometa-gutenberg]/[undertaker]/lib/series.js:13:14

  - index.js:171 _callee$
    [studiometa-gutenberg]/[@studiometa]/gulp-config/dist/index.js:171:59

  - runtime.js:45 tryCatch
    [studiometa-gutenberg]/[regenerator-runtime]/runtime.js:45:40

  - runtime.js:271 Generator.invoke [as _invoke]
    [studiometa-gutenberg]/[regenerator-runtime]/runtime.js:271:22

  - runtime.js:97 Generator.prototype.(anonymous function) [as next]
    [studiometa-gutenberg]/[regenerator-runtime]/runtime.js:97:21

  - asyncToGenerator.js:3 asyncGeneratorStep
    [studiometa-gutenberg]/[@babel]/runtime/helpers/asyncToGenerator.js:3:24

  - asyncToGenerator.js:25 _next
    [studiometa-gutenberg]/[@babel]/runtime/helpers/asyncToGenerator.js:25:9

If I launch the scripts-lint(or all other task) individually, it works well. I tried to debug the error but I haven't find any issue.

Environment

  • Node version : 10.15.3
  • Npm version : 6.4.1
  • Gulp version: 4.0.2

Gulp config (gulpfile.js):

const config = require('@studiometa/gulp-config');

module.exports = config.create({
  scripts: {
    src: './src',
    dist: './dist',
  },
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions