Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deep import of core.js 3 #179

Open
akvaliya opened this issue Sep 4, 2019 · 2 comments
Open

Remove deep import of core.js 3 #179

akvaliya opened this issue Sep 4, 2019 · 2 comments

Comments

@akvaliya
Copy link

akvaliya commented Sep 4, 2019

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'

@BehnooshShiva
Copy link

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

@hinoobmaster
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants