[英]Can't resolve 'core-js/client/shim — Upgrade Angular from v6 to v7
After upgrade new version of Angular that error occurs: 升级新版本的Angular后,会发生错误:
Can't resolve 'core-js/client/shim
In main.ts
I have code: 在
main.ts
我有代码:
// Shim the environment
import 'core-js/client/shim';
Any ideas on how to resolve? 关于如何解决的任何想法?
Try to replace: 尝试更换:
// Shim the environment
import 'core-js/client/shim';
by: 通过:
// Shim the environment
import 'core-js/features/reflect';
Angular use Reflecting to make Dependency Injection works . 角使用Reflecting使依赖注入有效 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.