imports of lazy-loaded libraries are forbidden due to name collision
See original GitHub issueI have a lib called ‘order’, which is lazy-loaded, and a lib called ‘oder-api’, which isn’t lazy loaded.
TSLint gives me the following error on a import of the OrderApiModule (from ‘order-api’).
[tslint] imports of lazy-loaded libraries are forbidden (nx-enforce-module-boundaries)
As far as I could figure out there is some name collision with the ‘order’ lib, because if I rename the ‘order-api’ libs folder to something like ‘apiorder’, the error is not displayed anymore. For renaming it ‘orderapi’ (without dash) I also get the error.
Version info:
"@nrwl/nx": "0.7.4",
"tslint": "5.9.1",
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
TSLint: imports of lazy loaded libraries are forbidden
Basically, AppModule imports module XYZModule for downgrade component export (for use at AngularJS) and routing through lazy-loading syntax ...
Read more >Writing R Extensions - The Comprehensive R Archive Network
The ' Imports ' field lists packages whose namespaces are imported from (as specified in the NAMESPACE file) but which do not need...
Read more >Lazy-loading feature modules - Angular
To lazy load Angular modules, use loadChildren (instead of component ) in your AppRoutingModule routes configuration as follows. AppRoutingModule (excerpt)
Read more >Fix list for IBM WebSphere Application Server V8.5
IBM WebSphere Application Server provides periodic fixes for the base and Network Deployment editions of release V8.5. The following is a complete listing ......
Read more >Authorization Services Guide - Keycloak
The configuration settings for a resource server (or client) can be exported and downloaded. You can also import an existing configuration file ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@FallenRiteMonk great to hear!
I try to add some tests, I hope the pr will get merged then …
with
allowyou can set a list of import paths that are allowed no matter where you import from it (eg.allow: ["../../libs/mylib/some.component", "../../libs/my-other-lib/other.component"]). it is a white list of allowed import paths.allowing globs here would be nice, but at the moment it has to match exactly…