Warning: Entry point simplebar-angular contains deep imports
See original GitHub issueDescribe 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:
- Created 3 years ago
- Reactions:5
- Comments:16 (6 by maintainers)
The deep import is fixed in
simplebar-angular
version 3.I also hope for a fix of this 😃