简体   繁体   English

Core-js:找不到 object.keys 的模块

[英]Core-js: Module not found for object.keys

In order to fix the ngx-toaster issue in IE https://github.com/scttcper/ngx-toastr/issues/673 I need the following import error in my pollyfills.ts为了修复 IE https://github.com/scttcper/ngx-toastr/issues/673 中的 ngx-toaster 问题,我需要在我的 pollyfills.ts 中出现以下导入错误

import 'core-js/features/object/keys'

I am getting Module not found error我收到模块未找到错误

Does anyone know the equivalent import of the above in core-js version 2.5.4有谁知道 core-js 版本2.5.4上述内容的等效导入

I use version 2.6.5 and import it like so:我使用版本 2.6.5 并像这样导入它:

import 'core-js/es6/object';

This should work for you too.这也应该对你有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM