gulp 打包报错

34 阅读1分钟

gulp 报错如下

The following tasks did not complete: default, , buildComponent [17:19:58] Did you forget to signal async completion?

  解决方法
    parallel() =>Promise.all()  
    
    
    const buildComponentFull = (minify: boolean) => async () => {
      Promise.all([Component(minify), genTypesComponent, copyCodeComponentTypes(), ComponentEntry(minify), genTypesIndex])
    }

     export const buildComponent = parallel(
       withTaskName('buildComponentFull', buildComponentFull(true)),
     )
    export const buildComponent = parallel( genTypesComponent, copyCodeComponentTypes(),genTypesIndex)
    

image.png