You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Entry point 'xxx' contains deep imports into 'yyy' #35615
Yes, the previous version in which this bug was not present was: 8.2.14
Description
Multiple warnings like "Entry point 'devextreme-angular/...' contains deep imports into '/node_modules/devextreme/...'. This is probably not a problem, but may cause the compilation of entry points to be out of order." occur when building an Angular v9 project with Ivy enabled.
Anything else relevant?
There are two packages in the project. The first one is devextreme-angular. It is created according to Angular library requirements. The second package is devextreme. It is not an Angular library. The thing is that warnings are related to long paths of this second package. We think these warnings are false-positive.
These are only warnings. Given that the devextreme package is not compiled by Angular then, as pointed out in the message: "This is probably not a problem."
It is not possible for ngcc to know whether the deep imports are going to be problematic or not, so it is reasonable to give the developer this information so that they can make a decision for themselves.
On Feb 24, 2020, at 9:41 PM, Alex Rickabaugh ***@***.***> wrote:
Closed #35615.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Reacted by Jordan Buckley, Gabe Hernandez, Felipe Quezada and Jason K.
Currently this is not possible, but I will look into a way to add a configuration to ngcc to allow you to ignore deep imports for specific entry-points.
Reacted by Gus Porto, Frantisek Skorunka, Roopesh Chinnakampalli and Jason K.
Reacted by Roman Balaban, Valera, Philipp John, Tane Piper, Frantisek Skorunka, Sam Lin, Bogdan Constantinescu, Chris Perko, Aleksei Khludov, Samer Albahra and 8 more
I have this message on a project with a lib and demo:
WARNING in Entry point 'ngx-openlayers' contains deep imports into
'[pwd]/ngx-openlayers/node_modules/ol/View',
'[pwd]/ngx-openlayers/node_modules/ol/Map',
'[pwd]/ngx-openlayers/node_modules/ol/layer',
My project architecture is:
projects/
ngx-openlayers/ <----- lib with ol in peerDependencies
ng-package.json
/src <----- demo project
ngcc.config.js <----- i put ngcc.config.js here
I put ngcc.config.js at the root of my project and updated angular but I still have the warnings.
Also, I don't understand how it will work when the lib is distributed.
But I think you could put the ngcc.config.js directly into the local package folder using a slightly different syntax...
projects/
ngx-openlayers/ <----- lib with ol in peerDependencies
ngcc.config.js <----- put ngcc.config.js here
ng-package.json
/src <----- demo project
Activity
portothree commentedon Feb 23, 2020
I'm currently with the same problem, did you found a workaround?
evanjmg commentedon Feb 23, 2020
+1
petebacondarwin commentedon Feb 24, 2020
These are only warnings. Given that the
devextremepackage is not compiled by Angular then, as pointed out in the message: "This is probably not a problem."It is not possible for ngcc to know whether the deep imports are going to be problematic or not, so it is reasonable to give the developer this information so that they can make a decision for themselves.
evanjmg commentedon Feb 25, 2020
petebacondarwin commentedon Feb 25, 2020
Currently this is not possible, but I will look into a way to add a configuration to ngcc to allow you to ignore deep imports for specific entry-points.
3 remaining items
fix(ngcc): allow deep-import warnings to be ignored
portothree commentedon Feb 26, 2020
Thanks @petebacondarwin.
fix(ngcc): allow deep-import warnings to be ignored (#35683)
stevethemacguy commentedon Feb 28, 2020
Steps to silence the warning:
kekel87 commentedon Feb 28, 2020
I'm not sure I understand:
I have this message on a project with a lib and demo:
My project architecture is:
I put
ngcc.config.jsat the root of my project and updated angular but I still have the warnings.Also, I don't understand how it will work when the lib is distributed.
petebacondarwin commentedon Feb 28, 2020
I don't think it works with local libraries - if I remember correctly ngcc.config.js expects packages to be below a node_modules directory.
petebacondarwin commentedon Feb 28, 2020
But I think you could put the
ngcc.config.jsdirectly into the local package folder using a slightly different syntax...kekel87 commentedon Feb 28, 2020
I just tried it always does the same thing.
I put a log in
ngcc.config.jsand I don't have the impression that it is used.petebacondarwin commentedon Feb 28, 2020
Please open a new issue with a reproduction of your scenario, and I can look into it.
Valera1980 commentedon Mar 27, 2020
Thanks. That advice is helps me
maxisam commentedon Apr 9, 2020
To me, it kinda works. There were like 3 duplicated warnings. Now I only got 2 duplicated warnings lol.
update
I figured out why.
Because I have paths mapping in tsconfig like lib: ["dist/lib"]. And I haven't rebuild the library with ngcc.config.js yet.
2 duplicated is because of the duplicated path mappings.
roopeshchinnakampalli commentedon Apr 23, 2020
This was helpful
angular-automatic-lock-bot commentedon May 24, 2020
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.