ERROR in [at-loader] node_modules\@types\jasmine

后端 未结 3 803
逝去的感伤
逝去的感伤 2020-12-30 02:13

My webpack build started failing out of nowhere with no packages being updated. I assume some minor version update caused this, but can\'t figure out how to get around it. D

3条回答
  •  半阙折子戏
    2020-12-30 02:49

    Even with Angular 2+ I had this problem. What solved the problem to me, instead of downgrading Jasmine was updating Typescript.

    My steps were:

    • Change package.json to point to a new version of typescript
      • "typescript": "~2.0.9" -> "typescript": "^2.0.9"
    • Run npm install
    • After this the error was gone.

提交回复
热议问题