emilrmoeller
11/24/2016, 9:46 PMsdubois
11/25/2016, 5:31 AMsdubois
11/25/2016, 5:32 AMgeocine
11/25/2016, 3:23 PMtsconfig.json
?
During ionic serve
"lib": [
"dom",
"es6"
]
But during ionic build android
I should do this
"lib": [
"dom",
"es5"
]
And is there any work around so that I don't have to manually edit the file every time I execute the commands? If I don't change them these commands would throw error and interrupt webpack.schickling
11/25/2016, 6:00 PMgeocine
11/25/2016, 6:15 PMTypeScript 2.0 comes with a set of predefined type declarations.
If you’re using one of them that brings ES2015 (ES6) you should disable it, because @types/es6-shim will cause an issue with multiple types definitons.
It’s easy, just replace es6, es2015 or similar options from compilerOptions.lib for es5.
But I have to change it back when doing an ionic serve
geocine
11/26/2016, 9:41 AMsigninUser
mutation it is working well. However on initial page load and I click my login button without a email and password supplied I get this error on the javascript console. Do you know what is the cause of this?
error_handler.js:50 ORIGINAL EXCEPTION: this.apollo.mutate(...).toPromise is not a function
geocine
11/26/2016, 9:42 AMgeocine
11/26/2016, 9:51 AMgeocine
11/26/2016, 10:09 AMgeocine
11/26/2016, 10:10 AMschickling
11/26/2016, 10:22 AMschickling
11/26/2016, 10:23 AMemilrmoeller
11/26/2016, 1:17 PMgeocine
11/26/2016, 4:20 PMimport 'rxjs/add/operator/toPromise';
geocine
11/26/2016, 4:21 PMes5(build) <-> es6(serve)
emilrmoeller
11/26/2016, 10:53 PMtsconfig.ionicbuild.json
(or something else) file where settings fit for building the ionic app es5(build)
.
then in package.json add a line like this "build": “./node_modules/.bin/tsc -p src/tsconfig.ionicbuild.json”,
And run npm run build
instead of ionic.
But it sounds like something ionic would make sure to fix thoughkitze
11/29/2016, 1:54 PMnilan
11/29/2016, 1:54 PMkitze
11/29/2016, 1:55 PMkitze
11/29/2016, 2:40 PMschickling
11/29/2016, 2:47 PMkitze
11/29/2016, 2:53 PMkitze
11/29/2016, 4:07 PMschickling
11/29/2016, 4:18 PMschickling
11/29/2016, 4:19 PMschickling
11/29/2016, 4:20 PMkitze
11/29/2016, 4:21 PMkitze
11/29/2016, 4:21 PMashvala
11/29/2016, 5:31 PM