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": [
    ...
  ]
}
原文地址:https://www.cnblogs.com/viola-sh/p/10071462.html