question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Entry point simplebar-angular contains deep imports

See original GitHub issue

Describe the bug Tried simplebar and then tried the angular version with Angular version 10 but both give the following warnings in compile build output

Warning: Entry point 'simplebar-angular' contains deep imports into '../node_modules/simplebar/dist/simplebar-core.esm'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

followed with more warning of this type in command and browser console

WARNING in ..\ode_modules\simplebar\dist\simplebar-core.esm.js depends on core-js/modules/es.array.filter. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies.

Expected behavior to not see any warnings

Additional context tried adding in the angular.json this snippet but did not work

"build": {
  "builder": "@angular-devkit/build-angular:browser",
  "options": {
     "allowedCommonJsDependencies": [
        "simplebar",
        "simplebar-angular",
     ]
     ...

so I also added this ngcc.config.js with the following code but nothing still lots of warnings

module.exports = {
  packages: {
    'simplebar-angular':  {
      ignorableDeepImportMatchers: [
        /simplebar\//
      ]
    },
  }
};

Your environment

Software Version(s)
SimpleBar “simplebar-angular”: “^2.2.1”,
Browser chrome latest
npm/Yarn Yarn latest
Operating System win7

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
hakimiocommented, Aug 19, 2020

The deep import is fixed in simplebar-angular version 3.

2reactions
SvenBudakcommented, Jul 7, 2020

I also hope for a fix of this 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 - Stack Overflow
Warning : Entry point 'angular-instantsearch' contains deep imports into ' /node_modules/instantsearch.js/es/connectors', ' /node_modules/ ...
Read more >
DevExtreme - "Entry point ... contains deep imports" warnings ...
Angular 9 has been finally released yesterday. After upgrading ng build --prod produces a lot of deep import warnings.
Read more >
[simplebar-angular] contains deep imports - Bountysource
Describe the bug. I am receiving the following warning while compiling an angular 10 application: Warning: Entry point 'simplebar-angular' ...
Read more >
Build warnings in Angular after upgrading from 7.2 to 8.6 #8977
6. While building the Angular Project, the CLI is emitting the below warnings. Warning: Entry point 'abp-ng2-module' contains deep imports into ...
Read more >
State of the Angular | Libraries in Angular 12 - MeetupFeed
And the primary entry point within the package is just imported using the ... And now you see that if you would have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found