Skip to content
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

AoT build fails using multiple apps in own project with dependency between them #7883

Closed
CSchulz opened this issue Sep 29, 2017 · 2 comments
Closed
Assignees

Comments

@CSchulz
Copy link

CSchulz commented Sep 29, 2017

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.4
node: 6.10.2
os: darwin x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.4
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.3.4

Repro steps.

https://github.com/CSchulz/angular-cli-multiple-apps-with-common

Start the project with npm start.

The log given by the failure.

ERROR in multiple-apps-with-common/showcase/$$_gendir/src/app.component.ngfactory.ts (10,21): Cannot find module '../../../src/app/common.component.ngfactory'.
ERROR in multiple-apps-with-common/showcase/$$_gendir/src/app/app.component.ngfactory.ts (11,21): Cannot find module './app.component'.
ERROR in multiple-apps-with-common/showcase/$$_gendir/src/app/common.component.ngfactory.ts (10,21): Cannot find module './common.component'.
ERROR in multiple-apps-with-common/showcase/$$_gendir/src/index.ngfactory.ts (10,21): Cannot find module './index'.
ERROR in multiple-apps-with-common/showcase/$$_gendir/src/index.ngfactory.ts (11,21): Cannot find module './app/app.component'.
ERROR in multiple-apps-with-common/showcase/$$_gendir/src/app.module.ngfactory.ts (12,21): Cannot find module '../../../src/app/app.component.ngfactory'.

Desired functionality.

The repository contains a common module, which is part of a library and the showcase should be used to show the functionality.

@filipesilva
Copy link
Contributor

Heya, this is a duplicate of #6387. You can find an explanation for why this doesn't work in #6228 (comment).

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants