angular-cli项目报Error encountered resolving symbol values statically. Function calls are not supported.错误的处理。

安装同事打包的一个模块,报了这么个错,不过在其他地方使用是正常的。

Error encountered resolving symbol values statically. Function calls are not supported.

解决的办法

在tsconfig.json文件中添加

{
  ...
  "compilerOptions": {
    ..
    "skipLibCheck": true,
    "noStrictGenericChecks": false,
    "paths": {
      "@angular/*": ["../node_modules/@angular/*"],
     ...
    }
  },
  "exclude": [
    ...
  ]
}

 

posted @ 2018-12-05 15:58  Viola_left  阅读(654)  评论(0编辑  收藏  举报