Same issue here. Typescript compiler does say I have error, but the code is perfectly working until I upgraded everything to the latest version. What is the reason ionic-gulp-browserify-typescript does not build an app.js anymore and how can be fix this? (except for fixing the “coding errors”, which are not really errors as the code works)
I disagree with this. They are errors. Fix them.
Me too, I’m using beta.35 and ionic-gulp-browserify-typescriptv2.0.0.0
I am seeing this too. Just started a new ionic2 (typescript) project fresh today.
I am on Windows 10.
I even tried reverting ionic-gulp-browserify-typescript to 1.1.1 and making the change to point to main.d.ts, but still had the same issue…
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.31
Ionic App Lib Version: 2.0.0-beta.17
OS:
Node Version: v4.4.5
“dependencies”: {
"@angular/common": “2.0.0-rc.3”,
"@angular/compiler": “2.0.0-rc.3”,
"@angular/core": “2.0.0-rc.3”,
"@angular/platform-browser": “2.0.0-rc.3”,
"@angular/platform-browser-dynamic": “2.0.0-rc.3”,
"@angular/http": “2.0.0-rc.3”,
“es6-shim”: “^0.35.0”,
“ionic-angular”: “2.0.0-beta.10”,
“ionic-native”: “1.3.2”,
“ionicons”: “3.0.0”,
“reflect-metadata”: “^0.1.3”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “^0.6.12”
},
“devDependencies”: {
“del”: “2.2.0”,
“gulp”: “3.9.1”,
“gulp-watch”: “4.3.5”,
“ionic-gulp-browserify-typescript”: “2.0.0”,
“ionic-gulp-fonts-copy”: “^1.0.0”,
“ionic-gulp-html-copy”: “^1.0.0”,
“ionic-gulp-sass-build”: “^1.0.0”,
“ionic-gulp-scripts-copy”: “^2.0.0”,
“ionic-gulp-tslint”: “^1.0.0”,
“tslint-ionic-rules”: “^0.0.3”,
“run-sequence”: “1.1.5”
}
I was able to solve this by eliminating all typescript errors. In my case, I had to install the following:
typings install dt~cordova --save --global
Hi Russcarver
install dt~cordova --save --global ==> is this command correct ?
Add a ‘typings’ on the front.
typings install dt~cordova --save --global
Add a ‘typings’ on the front.
typings install dt~cordova --save --global
Hi Russcarver,
It said typings is not command
You have to have typings installed first. Run these commands in this order:
npm install typings --global
typings install debug --save
typings install dt~cordova --save --global
typings install dt~es6-shim --save --global
That should get you set up with all the typings you need.
thanks russcarver, this saved my bacon!
Hi, I noticed ionic not including app.bundle if I have the tslint gulp task included. If I remove tslint, the app bundle is included and my app starts perfectly.
Very helpful thank you
I think the typings
library may be obsolete now. I believe the latest recommended way to install type definitions is to do it directly with npm. Just keeps everything in one place.
For example:
npm install lodash --save
npm install @types/lodash --save-dev