ngx-restangular
ngx-restangular copied to clipboard
Remove deep import of core.js 3
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'
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
Maybe you can just silence the warning:
- Create a file named 'ngcc.config.js' at your top-level project folder (see: #35683)
module.exports = {
packages: {
'ngx-restangular': {
ignorableDeepImportMatchers: [
/core-js\//,
]
},
},
};
- Enjoy your build