-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
0.9.1 tslint lazy load modules check not working (when nested) #352
Comments
hi @ph55 In my opinion this is the expected behaviour - the same lib can be included lazy or eager (tried to explain that here), both is possible - but if you import it lazy, you are not allowed to also import it eager within the same app/lib. Try this with your example: About windows: |
hi @skydever Thanks for explanation. But take a look at And then both
|
I am not sure what you are expecting, my thoughts on that are: the rule does not check if a lazy loaded module is importing a module that was already eager loaded in the app or the other way round, and I think that's ok like this. lets say you have a classic shared module, you will import that module nearly everywhere, and you need to to have access to its components, also in the lazy loaded module. you don't have access to the components of about circular dependencies on that matter, I think this is ok too: |
Got it. Thanks. |
I am happy if I could help. Still figuring out some things myself. I thought about the old behavior, that forbid the import of libs when they were marked lazy. You can do it with |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Description:
Add lazy-loaded module to app routing.
Import same module into another without lazy-load.
No tslint warning thrown.
Repo:
https://github.com/ph55/nx-lazy-load
Info:
The text was updated successfully, but these errors were encountered: