ngx-restangular icon indicating copy to clipboard operation
ngx-restangular copied to clipboard

Remove deep import of core.js 3

Open akvaliya opened this issue 4 years ago • 2 comments

With angular 8 Ivy it prevents production build since it contains deep import.

Getting below error and build fails. WARNING in Entry point 'ngx-restangular' contains deep imports into 'E:/test_app/node_modules/core-js/features/object'

akvaliya avatar Sep 04 '19 13:09 akvaliya

Angular 9 Upgrade, same warning : Warning: Entry point 'ngx-restangular' contains deep imports into 'C:/../node_modules/core-js/features/object'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

And when i run my project ERROR : Cannot instantiate cyclic dependency! Restangular

BehnooshShiva avatar Apr 21 '20 08:04 BehnooshShiva

Maybe you can just silence the warning:

  1. Create a file named 'ngcc.config.js' at your top-level project folder (see: #35683)
module.exports = {
    packages: {
        'ngx-restangular': {
        ignorableDeepImportMatchers: [
            /core-js\//,
        ]
        },
    },
};
  1. Enjoy your build

hinoobmaster avatar Jun 23 '21 04:06 hinoobmaster