[英]Could not find local “typescript” package.The “@ngtools/webpack” package Angular 2
[英]throw new Error('Could not find local “typescript” package.')
I am getting this error when I upgraded angular from version 5.2 to 11. I have typescript installed in the package.json file. 但是當我運行應用程序時,我不斷收到錯誤消息:throw new Error('Could not find local "typescript" package.')
我也提到了以下問題,但這對我沒有幫助。
解決方案是創建一個新項目來升級應用程序。 只需復制源文件,然后升級依賴項。 還根據需要更改了組件中的代碼。 我能夠成功升級我的應用程序。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.