[英]ng2-admin dashboard issue while running application when i ran comman npm start
我一直在ng2-admin儀表板上工作,直到昨天我能夠在本地環境上運行儀表板,今天我已獲取最新代碼並運行命令npm install
, npm start
,然后面臨以下問題...
'5毫秒塊資產優化94%資產優化保釋模式下的錯誤:[默認值] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:6:0找不到'jquery'的類型定義文件。
資產優化保釋模式下的錯誤:[默認值] \\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:6:0找不到'jquery'的類型定義文件。
[默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:6:1找不到'jquery'的類型定義文件。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:7:1找不到'moment'的類型定義文件。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:21:19模塊'' ''沒有導出成員'Duration'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:22:17模塊'' ''沒有導出成員'Duration'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:27:19模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:28:18模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:66:18模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:66:57模塊“”沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:74:26模塊“” 沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:154:27模塊“”沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:156:32模塊'' ''沒有導出成員'Duration'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:157:27模塊“”沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:158:25模塊“” 沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:159:22模塊“”沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:160:22模塊“” 沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:178:52模塊“”沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:181:54模塊“” 沒有導出成員“持續時間”。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:188:46模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:188:66模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:193:29模塊“”沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:193:49模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:200:26模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:238:27模塊“” 沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:239:25模塊'' ''沒有導出成員'Moment'。 [默認] D:\\ ng2-admin \\ node_modules \\ @types \\ fullcalendar \\ index.d.ts:339:55模塊``*''沒有導出的成員'Moment'。 [默認]檢查完成,出現25個錯誤'
我已找到此問題的根本原因和解決方案,
根本原因:他們已經更新了package.json文件中的一些dev-dependency庫版本,例如fullcalender,jquery,jquery.slimscroll等。在編譯時,它們將類型稱為“ compilerOptions”,而不是“ typeRoots”,后者實際上是指node_modules / @types。
解:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.