Skip to content

Tour of Heroes doesn't compile with Ivy and angular-in-memory-web-api #28603

@brandonroberts

Description

@brandonroberts

🐞 bug report

Affected Package

The issue is caused by package @angular/....

Is this a regression?

Yes

Description

A clear and concise description of the problem...

When using Ivy/ngcc with angular-in-memory-api version 0.8.0, the app does not compile and emits an error.

The app currently works under V7 and V8 without Ivy with no issues.

🔬 Minimal Reproduction

https://github.com/brandonroberts/ivy-in-memory

Instructions to reproduce are in the README

🔥 Exception or Error





```
ERROR in Value at position 4 in imports array is not a reference: [object Object]
```

🌍 Your Environment

Angular Version:




Angular CLI: 7.1.4
Node: 10.14.2
OS: linux x64
Angular: 8.0.0-beta.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.11.4
@angular-devkit/build-angular     0.11.4
@angular-devkit/build-optimizer   0.11.4
@angular-devkit/build-webpack     0.11.4
@angular-devkit/core              7.1.4
@angular-devkit/schematics        7.1.4
@angular/cli                      7.1.4
@ngtools/webpack                  7.1.4
@schematics/angular               7.1.4
@schematics/update                0.11.4
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.23.1

Anything else relevant?

I did an additional build of angular-in-memory-web-api with ng-packagr and 8.0.0-beta.3 and the app works correctly under Ivy/ngcc.

Build repo is here: https://github.com/brandonroberts/in-memory-web-api-bazel
Build branch is here: https://github.com/brandonroberts/in-memory-web-api/tree/ng-packagr-build

cc: @kara @IgorMinar @petebacondarwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions