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
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
windows 7
Versions.
Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.16
NODE: 6.5.0
os: win32 x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
the app was created using the CLI
added components, service
The log given by the failure.
Normally this include a stack trace and some more information.
94% asset optimizationError in bail mode: [default] c:\Dev\angular2showcaseapp
src\app\app.component.ts:5:12
Cannot find name 'require'.
Mention any other details that might be useful.
contents of app.component.ts
import { Component } from '@angular/core'; @component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Angular 2 Rocks hardcore!';
}