Ionic serve broken after upgrading to RC.1

Did Dan’s solution, now

[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.collection.d.ts, line: 24

            All declarations of 'size' must have identical modifiers.
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.collection.d.ts, line: 30

            All declarations of 'prototype' must have identical modifiers.
      L30:  declare var WeakMap: WeakMapConstructor;
            All declarations of 'prototype' must have identical modifiers.
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.collection.d.ts, line: 44

      L43:  new <T>(values?: T[]): Set<T>;
      L44:  readonly prototype: Set<any>;
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.collection.d.ts, line: 54

            All declarations of 'size' must have identical modifiers.
      L54:  interface WeakSetConstructor {
      L55:      new (): WeakSet<any>;
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.collection.d.ts, line: 60
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.collection.d.ts, line: 73

            All declarations of 'prototype' must have identical modifiers.
            All declarations of 'prototype' must have identical modifiers.
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.core.d.ts, line: 17

            Duplicate identifier 'PropertyKey'.
      L16:  * Returns the index of the first element in the array where predicate is true, an
      L17:  * otherwise.
      L18:  * @param predicate find calls predicate once for each element of the array, in as
            All declarations of 'EPSILON' must have identical modifiers.
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.core.d.ts, line: 216

     L216:  /**
     L217:    * Returns a Boolean value that indicates whether a value is the reserved value Na
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.core.d.ts, line: 251

            All declarations of 'MAX_SAFE_INTEGER' must have identical modifiers.
     L251:  * Converts A string to an integer.
     L252:  * @param s A string to convert into a number.
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.core.d.ts, line: 258

            All declarations of 'MIN_SAFE_INTEGER' must have identical modifiers.
     L257:      parseInt(string: string, radix?: number): number;
     L258:  }
            All declarations of 'flags' must have identical modifiers.
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.core.d.ts, line: 403

     L402:  interface RegExpConstructor {
     L403:      new (pattern: RegExp, flags?: string): RegExp;
     L404:      (pattern: RegExp, flags?: string): RegExp;
            All declarations of 'value' must have identical modifiers.
      L28:  interface Array<T> {
      L29:      /** Iterator */
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.iterable.d.ts, line: 29

      L30:      [Symbol.iterator](): IterableIterator<T>;
[12:34:25]  typescript: node_modules/typescript/lib/lib.es2015.promise.d.ts, line: 69

            All declarations of 'prototype' must have identical modifiers.
      L69:  * Creates a Promise that is resolved with an array of results when all of the provi
      L70:  * resolve, or rejected when any Promise is rejected.
            Duplicate identifier 'PropertyKey'.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 8

       L8:  interface IterableShim<T> {
            All declarations of 'value' must have identical modifiers.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 12

      L12:  "_es6-shim iterator_"(): Iterator<T>;
            All declarations of 'EPSILON' must have identical modifiers.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 250

     L249:    * @param number A numeric value.
     L250:    */
     L251:  isFinite(number: number): boolean;
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 285

            All declarations of 'MAX_SAFE_INTEGER' must have identical modifiers.
     L285:  MIN_SAFE_INTEGER: number;
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 292

            All declarations of 'MIN_SAFE_INTEGER' must have identical modifiers.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 348

            All declarations of 'flags' must have identical modifiers.
     L347:    * @param x A numeric expression.
     L348:    */
     L349:  clz32(x: number): number;
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 500

            All declarations of 'prototype' must have identical modifiers.
     L499:   * and a reject callback used to reject the promise with a provided reason or error.
     L500:   */
     L501:  new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?:
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 563

            All declarations of 'size' must have identical modifiers.
     L562:  interface MapConstructor {
     L563:      new <K, V>(): Map<K, V>;
     L564:      new <K, V>(iterable: IterableShim<[K, V]>): Map<K, V>;
            All declarations of 'prototype' must have identical modifiers.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 572

     L571:  add(value: T): Set<T>;
     L572:  clear(): void;
     L573:  delete(value: T): boolean;
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 583

            All declarations of 'size' must have identical modifiers.
     L582:  interface SetConstructor {
     L583:      new <T>(): Set<T>;
     L584:      new <T>(iterable: IterableShim<T>): Set<T>;
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 592

            All declarations of 'prototype' must have identical modifiers.
     L591:  delete(key: K): boolean;
     L592:  get(key: K): V;
     L593:  has(key: K): boolean;
            All declarations of 'prototype' must have identical modifiers.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 607

     L606:  add(value: T): WeakSet<T>;
     L607:  delete(value: T): boolean;
     L608:  has(value: T): boolean;
            All declarations of 'prototype' must have identical modifiers.
[12:34:25]  typescript: typings/browser/ambient/es6-shim/index.d.ts, line: 621

     L620:  function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>):
     L621:  function construct(target: Function, argumentsList: ArrayLike<any>): any;
     L622:  function defineProperty(target: any, propertyKey: PropertyKey, attributes: Property
[12:34:25]  transpile failed

in the end it says “transpile failed”

tsc 2.0.3

tsconfig.json

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": true,
    "lib": [
      "dom",
      "es2015"
    ],
    "moduleResolution": "node",
    "target": "es5",
    "module": "commonjs",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true
  },
  "filesGlob": [
    "**/*.ts",
    "!node_modules/**/*"
  ],
  "exclude": [
    "node_modules",
    "typings/main",
    "typings/main.d.ts"
  ],
  "compileOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
}

The other question is: Is it OK to bring back the “^” in package.json?

See if Dan can help you by posting here -

Don’t bring the '^'
It’s related to npm install command, you’ll install the exact versions mentioned in your package.json. It will avoid you conflicts and warnings.

ionic build android seems to be able to run through successfully, I don’t understand why ionic serve didn’t pass the transpile.

Did. Thanks for the note.

Yup, upgrade broke me bad. I wound up creating a new project, copying over my /src/ files, and I was running again in no time flat, now with Ionic 2 RC.1. Woo-hoo, Chrome dev tools now shows the /pages/*.ts files! I can debug again, with console.log! :grin:

I have the same errors and situation. Was running fine until I updated from rc0 to rc1. I have also tried the advice above without success.

this fixed my issue: ( ^ on everything except the @angular dependencies

“dependencies”: {
"@angular/common": “2.0.0”,
"@angular/compiler": “2.0.0”,
"@angular/compiler-cli": “0.6.2”,
"@angular/core": “2.0.0”,
"@angular/forms": “2.0.0”,
"@angular/http": “2.0.0”,
"@angular/platform-browser": “2.0.0”,
"@angular/platform-browser-dynamic": “2.0.0”,
"@angular/platform-server": “2.0.0”,
“ionic-angular”: “2.0.0-rc.1”,
“ionicons”: “^3.0.0”,
"@ionic/storage": “^1.0.3”,
“ionic-native”: “^2.2.3”,
“zone.js”: “0.6.21”,
“rxjs”: “5.0.0-beta.12”
},
“devDependencies”: {
"@ionic/app-scripts": “^0.0.36”,
“typescript”: “^2.0.3”
},