Skip to content

ng build —aot Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' #7853

@oshri

Description

@oshri

###OS?
macOS Sierra x64

Versions.

@angular/cli: 1.1.3
node: 6.10.0
os: darwin x64
@angular/animations: 4.4.3
@angular/common: 4.4.3
@angular/compiler: 4.4.3
@angular/core: 4.4.3
@angular/forms: 4.4.3
@angular/http: 4.4.3
@angular/platform-browser: 4.4.3
@angular/platform-browser-dynamic: 4.4.3
@angular/router: 4.4.3
@angular/cli: 1.1.3
@angular/compiler-cli: 4.4.3
@angular/language-service: 4.4.3

Repro steps.

App started using angular cli

The log given by the failure.

This is from my command line:
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/Users/ok13067/projects/test-aot/src'
@ ./src/main.ts 3:0-74
@ multi ./src/main.ts

Desired functionality.

build --aot

Metadata

Metadata

Assignees

Labels

needs: repro stepsWe cannot reproduce the issue with the information given

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions