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
Tour of Heroes doesn't compile with Ivy and angular-in-memory-web-api #28603
@brandonroberts Hmm, seeing that angular-in-memory-web-api also has that InMemoryWebApiModule_1 indirection going on it should be supported with #29119. I'm not sure what would prevent this from working this time around, I'll need to take a look at it.
Okay, I ran through the repro and have found the culprit on why angular-in-memory-web-api is causing problems. The root issue is that its package.json does not specify a typings nor types issue, which ngcc tests as a prerequisite for processing an entry-point:
Activity
alexzuza commentedon Feb 7, 2019
Ivy compiler does not resolve ModuleWithProviders yet.
angular/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.ts
Lines 331 to 332 in 50732e1
cc @alxhub
alxhub commentedon Feb 7, 2019
I think that
TODOis incorrect, we do indeed processModuleWithProviders(a few lines above, actually, with another comment).petebacondarwin commentedon Feb 8, 2019
But it looks like the error that is being reported in this issue comes from that line.
brandonroberts commentedon Apr 10, 2019
I'm still seeing this issue with the latest beta(11). Was #29119 supposed to fix this issue @JoostK?
brandonroberts commentedon Apr 10, 2019
I've updated the repo also https://github.com/brandonroberts/ivy-in-memory
cc: @alxhub
JoostK commentedon Apr 11, 2019
@brandonroberts Hmm, seeing that angular-in-memory-web-api also has that
InMemoryWebApiModule_1indirection going on it should be supported with #29119. I'm not sure what would prevent this from working this time around, I'll need to take a look at it.JoostK commentedon Apr 13, 2019
Okay, I ran through the repro and have found the culprit on why
angular-in-memory-web-apiis causing problems. The root issue is that itspackage.jsondoes not specify atypingsnortypesissue, whichngcctests as a prerequisite for processing an entry-point:angular/packages/compiler-cli/ngcc/src/packages/entry_point.ts
Lines 83 to 87 in ea70d41
The
nullreturn causes the entry-point to be dropped from further processing, as it is considered not to be an Angular package at all.JoostK commentedon Apr 28, 2019
Tracked as FW-1299
16 remaining items
docs: allow custom package version for example zip file dependencies
fix(ivy): ngcc - infer entry-point typings from format paths
angular-automatic-lock-bot commentedon Sep 15, 2019
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.