akveo / akveo/blur-admin

Gulp Build Issue with Inject

Aberta
#507 4 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
11.3k
Forks
3k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I recently installed blur-admin but I am having difficulties initiating the app via the _gulp serve_ command. The problem seems to relate to the inject task that runs after the 'html' task in **build.js**. Below is the error that I keep getting:

$ gulp serve
assert.js:42
throw new errors.AssertionError({
^

AssertionError [ERR_ASSERTION]: Task function must be specified
at Gulp.set [as _setTask] (D:\Git Repo\blur-admin\node_modules\undertaker\lib\set-task.js:10:3)
at Gulp.task (D:\Git Repo\blur-admin\node_modules\undertaker\lib\task.js:13:8)
at Object. (D:\Git Repo\blur-admin\gulp\build.js:29:6)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)

I have tried updating the code with the latest syntax but this results in a different issue related to the 'inject' task definition. Here is the rewritten segment of the code:

`gulp.task('html', gulp.series(['inject', 'partials']), function a ()`

Here is the corresponding error message:
$ gulp serve
assert.js:42
throw new errors.AssertionError({
^

AssertionError [ERR_ASSERTION]: Task never defined: inject
at getFunction (D:\Git Repo\blur-admin\node_modules\undertaker\lib\helpers\normalizeArgs.js:15:5)
at map (D:\Git Repo\blur-admin\node_modules\arr-map\index.js:20:14)
at normalizeArgs (D:\Git Repo\blur-admin\node_modules\undertaker\lib\helpers\normalizeArgs.js:22:10)
at Gulp.series (D:\Git Repo\blur-admin\node_modules\undertaker\lib\series.js:13:14)
at Object. (D:\Git Repo\blur-admin\gulp\build.js:29:24)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

I am wondering whether this is an issue with any of my package versions or with the task definitions.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.