Skip to content

0% compiling and 10% building modules (rc5) #8207

Closed
@elvisbegovic

Description

@elvisbegovic
- [x ] bug report -> please search issues before submitting

Because of AoT By Default

Versions.

Angular CLI: 1.5.0-rc.5
Node: 6.11.0
OS: win32 x64
Angular: 5.0.0-rc.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.5.0-rc.5
@angular-devkit/build-optimizer: 0.0.31
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.34
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0-rc.5
@schematics/angular: 0.0.48
typescript: 2.5.3
webpack: 3.8.1

Repro steps.

update cli from rc3 to rc5 (and angular from rc5 to rc7)

The log given by the failure.

when launch ng serve first time it block on 0% compiling step
then when edit file it block at 10% building modules step

otherwise it compile BUT on browser we can see errors on console a lot template not found
image
and I fixed this by export bootstrap module export const bootstrap = () => platformBrowserDynamic().bootstrapModule(AppModule); for AoT can I consider to export this ? becasue otherwise not works ng s with aot

so problem here is it takes a while on 0% and 10%

Desired functionality.

tell me in console if this errors happends and how fix it

Mention any other details that might be useful.

  • was working in rc3
  • I just want to specify if I want create new project with cli like : ng new ok I get Cannot find module '@angular-devkit/schematics'
  • my components looks like :
@Component({
  selector: 'tsab-aaaa',
  templateUrl: './aaaa.component.html',
  styleUrls: ['./aaaa.component.css']
})

RESULT IN GIF

Juste removing one space in file I wait so:
aotbydefault

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions