Ionic-framework: ionic2 ionic-angular cannot find Promise

Created on 3 Mar 2016  路  1Comment  路  Source: ionic-team/ionic-framework

After upgrading to ionic-angular. I'm getting following message, which is missing Promise ts.

ERROR in [default] /Users/.../node_modules/rxjs/observable/PromiseObservable.d.ts:10:25
Cannot find name 'Promise'.

a solution using tsd https://github.com/ReactiveX/RxJS/issues/1066

How I can solve this for ionic?

Most helpful comment

Solution

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es6"   // <---- change to es6
    }
}

>All comments

Solution

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es6"   // <---- change to es6
    }
}
Was this page helpful?
0 / 5 - 0 ratings