title: Angular CLI: Cannot read property 'config' of null
body: <p>Recently upgraded my application from Angular 2.3.0 to Angular 4.0.3. In the process also upgraded angular-cli. If project cloned to a new directory, it is throwing: 
  <br/></p>
  
  <blockquote>
    <p>Cannot read property 'config' of null TypeError: Cannot read property
    'config' of null
        at Class.run (/Users/hyadav/Documents/projects/web-app/node_modules/@angular/cli/tasks/build.js:16:56)
        at Class.run (/Users/hyadav/Documents/projects/web-app/node_modules/@angular/cli/commands/build.js:143:26)
        at Class. (/Users/hyadav/Documents/projects/web-app/node_modules/@angular/cli/ember-cli/lib/models/command.js:134:17)
        at process._tickCallback (internal/process/next_tick.js:109:7)</p>
  </blockquote>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>"scripts": {
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
    },
    "private": true,
    "dependencies": {
      "@angular/animations": "^4.0.3",
      "@angular/cli": "^1.0.1",
      "@angular/common": "^4.0.3",
      "@angular/compiler": "^4.0.3",
      "@angular/compiler-cli": "^4.0.3",
      "@angular/core": "^4.0.3",
      "@angular/forms": "^4.0.3",
      "@angular/http": "^4.0.3",
      "@angular/material": "^2.0.0-beta.3",
      "@angular/platform-browser": "^4.0.3",
      "@angular/platform-browser-dynamic": "^4.0.3",
      "@angular/platform-server": "^4.0.3",
      "@angular/router": "^4.0.3",
      "core-js": "^2.4.1",
      "hammerjs": "^2.0.8",
      "rxjs": "^5.2.0",
      "typescript": "^2.2.2",
      "zone.js": "^0.8.4"
    },
    "devDependencies": {
      "@angular/cli": "^1.0.1",
      "@angular/compiler-cli": "^2.4.0",
      "@types/jasmine": "2.5.38",
      "@types/node": "~6.0.60",
      "codelyzer": "~2.0.0",
      "jasmine-core": "~2.5.2",
      "jasmine-spec-reporter": "~3.2.0",
      "karma": "~1.4.1",
      "karma-chrome-launcher": "~2.0.0",
      "karma-cli": "~1.0.1",
      "karma-coverage-istanbul-reporter": "^0.2.0",
      "karma-jasmine": "~1.1.0",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.1.0",
      "ts-node": "~2.0.0",
      "tslint": "~4.4.2",
      "typescript": "~2.2.2"
   }
  </code></pre>