Having issues to build my angular app with angularcli.On ng build command it shows following error. What am i missing.
You have to be inside an angular-cli project in order to use the build command.
A Sample one works well. However the old project has this issue. The old project were not created by 'ng new' the angular-cli.json and entries in package.json were added manually. Which did build for a while and with all the compatible version changes with cli, angular, rxjs and zone now it is stuck with this error
ng --version gives me the following
angular-cli: 1.0.0-beta.28.3
node: 6.11.1
os: win32 x64
@angular/common: 2.3.1
@angular/compiler: 2.3.1
@angular/core: 2.3.1
@angular/forms: 2.3.1
@angular/http: 2.3.1
@angular/platform-browser: 2.3.1
@angular/platform-browser-dynamic: 2.3.1
@angular/router: 3.4.10
@angular/upgrade: 2.0.2
@angular/compiler-cli: 2.3.1
package.json has following entries and more
"name": "project1",
"version": "1.0.0",
"description": "Application to capture info",
"angular-cli": {},
...
"dependencies": {
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/forms": "^2.3.1",
"@angular/http": "^2.3.1",
"@angular/platform-browser": "^2.3.1",
"@angular/platform-browser-dynamic": "^2.3.1",
...
"devDependencies": {
"@angular/compiler-cli": "^2.3.1",
and a standard angular-cli.json
"apps": [
{
"root": ".",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "app/main.ts",