Aaron Lee

Results comments of Aaron Lee

I think it may be because it's missing the package.json file. I added this to fix the issue: "overrides": { "angular-chosen-js": { "main": "angular-chosen.js" } } Found the answer here:...

My environment.dev|etc.ts files don't appear to be copied into environment.ts when using AoT AND using components that are AoT compiled/imported from another library... I had an auth service class that...

@filipesilva I encountered a lazy loading issue but it is unlike stephenwilson1984's. Instead of 'Cannot find module', the main bundle includes the lazily loaded module. Per your request I have...

Same issue with 1.0.0-beta.16 ``` import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { DocumentsPage } from "./documents"; @NgModule({...

figured out the culprit; `import * as moment from 'moment'` anywhere in the eagerly-loaded module will prevent lazy loading, and instead loadChildren modules will be included in the main bundle....

I did not yet investigate, but I made a repo that can reproduce this issue: https://github.com/aaronleeucla/angular-cli-lazy-load-bug-repro/blob/master/src/app/app-routing.module.ts Running `ng serve` on this project, you can see that when either DatepickerModule is...

PSA: My previously suggested workaround (`declare var moment` instead of importing moment) should also be applied to code in lazy modules as well. Per my issue reference above, I found...

@Gillespie59 I've been running beta.22 / angular 2.2.3 and this bug still appears. Correction, when I say it appears, I mean in the form of lazy chunks code being duplicated,...

@filipesilva thanks for all your hardwork on improving the cli. Do you or anyone know whether this bug is on the angular-cli side or on the angular framework side? If...

My ng serve hanging went away after I updated /src/tsconfig.json to the one generated by beta.22