title: Ionic2 looking for js file where ts file exists
body: <p>I am using Ionic 2, and I get the following error:</p>
  
  <blockquote>
  <pre><code>Error: Module build failed: Error: ENOENT: no such file or directory, open
  </code></pre>
    
    <p>'E:\Development\IDE\ionic-apps\theWhoZoo-chat\src\pages\model\mapRangeModel.js'
            at Error (native)</p>
  </blockquote>
  
  <p>As you can see, it is looking for a <code>js</code> file. But that obviously does not exist under the <code>src</code> folder. It has the equivalent <code>ts</code> file.</p>
  
  <p>i.e. This file does exist:</p>
  
  <pre><code>\src\pages\model\mapRangeModel.ts
  </code></pre>
  
  <p>from <code>build\main.js</code>:</p>
  
  <pre><code>/***/ function(module, exports) {
  
  throw new Error("Module build failed: Error: ENOENT: no such file or directory, open 'E:\\Development\\IDE\\ionic-apps\\theWhoZoo-chat\\src\\pages\\model\\mapRangeModel.js'\n    at Error (native)");
  
  /***/ },
  </code></pre>
  
  <p>More info:</p>
  
  <p>I am also getting the following error in my CLI when I run <code>ionic serve</code>:</p>
  
  <blockquote>
  <pre><code>[12:26:34]  watch failed: A watch configured to watch the following paths failed to start. It likely that a file
              referenced does not exist: E:\Development\IDE\ionic-apps\theWhoZoo-chat\src\assets\**\*,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\src\index.html,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\src\manifest.json,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\src\service-worker.js,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\node_modules\ionicons\dist\fonts\**\*,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\node_modules\ionic-angular\fonts\**\*,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\node_modules\ionic-angular\polyfills\polyfills.js,
              E:\Development\IDE\ionic-apps\theWhoZoo-chat\node_modules\sw-toolbox\sw-toolbox.js
  </code></pre>
  </blockquote>
  
  <p>Ionic Info:</p>
  
  <pre><code>Your system information:
  
   ordova CLI: 6.4.0
  Ionic Framework Version: 2.0.0-rc.4
  Ionic CLI Version: 2.1.18
  Ionic App Lib Version: 2.1.9
  Ionic App Scripts Version: 1.0.0
  ios-deploy version: Not installed
  ios-sim version: Not installed
  OS: Windows 10
  Node Version: v6.9.2
  Xcode version: Not installed
  </code></pre>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "ionic-hello-world",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
      "clean": "ionic-app-scripts clean",
      "build": "ionic-app-scripts build",
      "ionic:build": "ionic-app-scripts build",
      "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
      "@angular/common": "2.2.1",
      "@angular/compiler": "2.2.1",
      "@angular/compiler-cli": "2.2.1",
      "@angular/core": "2.2.1",
      "@angular/forms": "2.2.1",
      "@angular/http": "2.2.1",
      "@angular/platform-browser": "2.2.1",
      "@angular/platform-browser-dynamic": "2.2.1",
      "@angular/platform-server": "2.2.1",
      "@ionic/storage": "1.1.7",
      "@types/googlemaps": "^3.25.42",
      "angular2-moment": "^1.1.0",
      "angularfire2": "^2.0.0-beta.7.1-pre",
      "firebase": "^3.6.4",
      "ionic-angular": "2.0.0-rc.4",
      "ionic-native": "2.2.11",
      "ionicons": "3.0.0",
      "rxjs": "5.0.0-beta.12",
      "zone.js": "0.6.26"
    },
    "devDependencies": {
      "@ionic/app-scripts": "^1.0.0",
      "typescript": "^2.0.9"
    },
    "cordovaPlugins": [
      "cordova-plugin-whitelist",
      "cordova-plugin-console",
      "cordova-plugin-statusbar",
      "cordova-plugin-device",
      "cordova-plugin-splashscreen",
      "ionic-plugin-keyboard"
    ],
    "cordovaPlatforms": [],
    "description": "theWhoZoo-chat: An Ionic project"
  }
  </code></pre>
  
  <p>Any help appreciated.</p>