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

后端 未结 3 798
逝去的感伤
逝去的感伤 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条回答
  •  旧时难觅i
    2020-12-30 02:43

    Looks like your @types/jasmine library was upgraded to the latest version since you have the caret symbol:

    "@types/jasmine": "^2.2.34",
    

    The latest version is having issues as this bug suggests. So try for now by setting the version to 2.5.41 in your package.json :

    "devDependencies": {
      "@types/jasmine": "2.5.41"
    }
    

    Maybe you have to delete your node-modules folder and run npm install for a clean installation.

提交回复
热议问题