簡體   English   中英

angular 2 npm link靜態解析符號值時遇到錯誤。 調用函數“ makeDecorator”

[英]angular 2 npm link Error in error encountered resolving symbol values statically. calling function 'makeDecorator'

如果使用“ npm鏈接”消耗我開發的另一個程序包,則在運行應用程序時出現錯誤。

錯誤是:

靜態解析符號值時遇到錯誤。 調用函數“ makeDecorator”

解決方案是將以下內容添加到您使用的項目的tsconfig.app.json文件中:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM