You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2022. It is now read-only.
Bug Report or Feature Request (mark with an
x
)Area
Versions
Windows 7 / Ubuntu 14.04.5 LTS
$ node --version
v8.9.3
$ npm --version
5.5.1
"@angular-devkit/schematics": "~0.0.42"
Repro steps
ng new mycustomproject
ng generate module toplevel --flat --module=app
The log given by the failure
vagrant@vagrant-ubuntu-trusty-64:/projects/mycustomproject$ ng generate module toplevel --flat --module=app
create src/app/toplevel.module.ts (192 bytes)
update src/app/app.module.ts (389 bytes)
vagrant@vagrant-ubuntu-trusty-64:/projects/mycustomproject$ cat src/app/
app.component.css app.component.html app.component.spec.ts app.component.ts app.module.ts toplevel.module.ts
vagrant@vagrant-ubuntu-trusty-64:/projects/mycustomproject$ cat src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { ToplevelModule } from './/toplevel.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ToplevelModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Desired functionality
vagrant@vagrant-ubuntu-trusty-64:/projects/mycustomproject$ ng generate module toplevel --flat --module=app
create src/app/toplevel.module.ts (192 bytes)
update src/app/app.module.ts (389 bytes)
vagrant@vagrant-ubuntu-trusty-64:/projects/mycustomproject$ cat src/app/
app.component.css app.component.html app.component.spec.ts app.component.ts app.module.ts toplevel.module.ts
vagrant@vagrant-ubuntu-trusty-64:/projects/mycustomproject$ cat src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { ToplevelModule } from './toplevel.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ToplevelModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: