Javascript 静态解析符号值时遇到角度2 npm链接错误。调用函数“makeDecorator”

Javascript 静态解析符号值时遇到角度2 npm链接错误。调用函数“makeDecorator”,javascript,angular,npm,angular-cli,Javascript,Angular,Npm,Angular Cli,如果我使用npm链接使用我开发的另一个包,那么在运行我的应用程序时会出现错误 错误是: 静态解析符号值时遇到错误。调用函数“makeDecorator”解决方案是将以下内容添加到您使用的项目的tsconfig.app.json文件中: "compilerOptions": { "paths": { "@angular/*": ["../node_modules/@angular/*"], "@ngrx/*": ["../node_modules/@ngrx

如果我使用npm链接使用我开发的另一个包,那么在运行我的应用程序时会出现错误

错误是:


静态解析符号值时遇到错误。调用函数“makeDecorator”

解决方案是将以下内容添加到您使用的项目的tsconfig.app.json文件中:

"compilerOptions": {
    "paths": {
        "@angular/*": ["../node_modules/@angular/*"],
        "@ngrx/*": ["../node_modules/@ngrx/*"],
        "rxjs/*": ["../node_modules/rxjs/*"]
        }
}