Hi Sander After some investigation even though I am not sure I didn't find any evidence that my dependency is not built with AOT but I will keep looking.
Meanwhile, I have a few questions and wonder if you will be able to help answer: 1. I created an app in attempt to repro the issue to no avail. Can you tell me how I can build an library with AOT turned off to see if the issue can repro with AOT off? 2. I am seeing when I try to get the router object, it is using the token "Router_37", but when NavigationService tries to get "Router_35". Does that confirm the AOT theory? Is there any way to fix or workaround this issue on my side? 3. Since you mention AOT, I want to mention when I run my application I am seeing this warning WARNING in Lazy routes discovery is not enabled. Because there is neither an entryModule nor a statically analyzable bootstrap code in the main file. Does it have anything to do with the issue I run into? thanks Peter On Mon, Mar 25, 2019 at 9:21 AM Sander Elias <sanderel...@gmail.com> wrote: > Hi Peter, > > In JIT mode the injector is a bit more forgiving, For AOT to work, all > code involving routing and the injector need to be statically analyzable. > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Angular and AngularJS discussion" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/_AnXbUTnpkc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.