簡體   English   中英

無法解析'core-js / client / shim-將Angular從v6升級到v7

[英]Can't resolve 'core-js/client/shim — Upgrade Angular from v6 to v7

升級新版本的Angular后,會發生錯誤:

Can't resolve 'core-js/client/shim

main.ts我有代碼:

// Shim the environment
import 'core-js/client/shim';

關於如何解決的任何想法?

嘗試更換:

// Shim the environment
import 'core-js/client/shim';

通過:

// Shim the environment
import 'core-js/features/reflect';

使用Reflecting使依賴注入有效

暫無
暫無

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

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