构建@ angular / material2时出错

时间:2017-06-15 07:25:42

标签: gulp angular-material2

我刚刚使用了最新版本的Angular材料2。 我尝试构建,它给了gulp构建错误。我确信有些事情是错的,任何人都可以尝试,如果它的建设很好。

TSError: ⨯ Unable to compile TypeScript
node_modules/@types/run-sequence/node_modules/@types/gulp/index.d.ts (15,15): Interface 'Gulp' incorrectly extends interface 'Orchestrator'.
  Types of property 'task' are incompatible.
    Type 'AddMethod' is not assignable to type '{ (name: string): Task; (name: string, fn: TaskFunc): void; (name: string, dep: string[], fn: Tas...'.
      Type 'Orchestrator' is not assignable to type 'Task'.
        Property 'fn' is missing in type 'Orchestrator'. (2430)
tools/gulp/tasks/ci.ts (4,17): Argument of type 'string[]' is not assignable to parameter of type 'TaskFunction'.
  Type 'string[]' provides no match for the signature '(done: (error?: any) => void): any'. (2345)

节点版本:v6.9.1 gulp版本:3.9.1

试过这个解决方案:Unable to run project under Gulp 没用。

如果有人可以帮助我解决这个问题,那就太好了,至少即使我知道它可以为其他人工作,我也会尝试修复它。

0 个答案:

没有答案