Hi everyone,
I was just wondering if anyone managed to get ionic 2 working with a real time server data or a mockup server, whatever? I tried with the older versions, but there are was a class required but not exported by angular to get it running with a mock server. Then I tried installing the newest versions to try to apply the new tutorial in Angular 2 (with AppModule and NgModule) but I just got more errors - classes required but not exported:
TypeScript error: C:/…/Desktop/Glossary/node_modules/ionic-angular/components/nav/nav.d.ts(1,30): Error TS2305: Module ‘“C:/…/Desktop/Glossary/node_modules/angular2/core”’ has no exported member ‘Compiler’.
TypeScript error: C:/…i/Desktop/Glossary/node_modules/ionic-angular/components/nav/nav.d.ts(1,40): Error TS2305: Module ‘“C:/…/Desktop/Glossary/node_modules/angular2/core”’ has no exported member ‘AppViewManager’.
TypeScript error: C:/…/Desktop/Glossary/node_modules/ionic-angular/components/tabs/tab.d.ts(1,22): Error TS2305: Module ‘“C:/…/Desktop/Glossary/node_modules/angular2/core”’ has no exported member ‘Compiler’.
TypeScript error: C:/…/Desktop/Glossary/node_modules/ionic-angular/components/tabs/tab.d.ts(1,32): Error TS2305: Module ‘“C:/…/Desktop/Glossary/node_modules/angular2/core”’ has no exported member ‘AppViewManager’.
TypeScript error: app/app.ts(2,20): Error TS2305: Module ‘“C:/…/Desktop/Glossary/node_modules/ionic-angular/index”’ has no exported member ‘ionicBootstrap’.
and so on. My package.json looks like this:
“dependencies”: {
“@angular/common”: “2.0.0-rc.4”,
“@angular/compiler”: “2.0.0-rc.4”,
“@angular/core”: “2.0.0-rc.4”,
“@angular/platform-browser”: “2.0.0-rc.4”,
“@angular/platform-browser-dynamic”: “2.0.0-rc.4”,
“@angular/http”: “2.0.0-rc.4”,
“@angular/forms”: “0.2.0”,
“es6-shim”: “0.35.1”,
“ionic-angular”: “2.0.0-beta.2”,
“angular2”:“^2.0.0-beta.6”,
“ionic-native”: “1.3.10”,
“ionicons”: “3.0.0”,
“reflect-metadata”: “0.1.2”,
“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.4”,
“run-sequence”: “1.1.5”
},
How does anyone make this thing work with a server?