Closed jimseiwert closed 6 years ago
I had a project from about 7 months ago I was trying to rebuild. When I run it on ios I get the error "Can't find variable: NativeStorage" from the polyfills file. I tried to play with versions up and down but ended with no such luck
Cordova - Version 6.5 Ionic - Version 3.20.0
Here is a list of my dependencies "dependencies": { "@angular/animations": "4.1.3", "@angular/common": "4.1.3", "@angular/compiler": "4.1.3", "@angular/compiler-cli": "4.1.3", "@angular/core": "4.1.3", "@angular/forms": "4.1.3", "@angular/http": "4.1.3", "@angular/platform-browser": "4.1.3", "@angular/platform-browser-dynamic": "4.1.3", "@ionic-native/app-version": "3.12.1", "@ionic-native/badge": "3.6.1", "@ionic-native/core": "3.6.1", "@ionic-native/device": "3.6.1", "@ionic-native/file": "3.10.3", "@ionic-native/keyboard": "3.10.3", "@ionic-native/network": "3.12.1", "@ionic-native/push": "3.12.1", "@ionic-native/splash-screen": "3.4.2", "@ionic-native/status-bar": "3.4.2", "@ionic-native/transfer": "3.10.3", "@ionic/cloud-angular": "0.12.0", "@ionic/storage": "2.0.1", "app-version": "0.0.1", "cordova-browser": "^4.1.0", "cordova-ios": "^4.5.4", "cordova-plugin-app-preferences": "^0.99.3", "cordova-plugin-app-version": "0.1.9", "cordova-plugin-appversion": "1.0.0", "cordova-plugin-badge": "0.7.4", "cordova-plugin-console": "1.0.7", "cordova-plugin-device": "1.1.6", "cordova-plugin-file": "4.3.3", "cordova-plugin-file-transfer": "1.6.3", "cordova-plugin-inappbrowser": "1.7.1", "cordova-plugin-nativestorage": "^2.3.1", "cordova-plugin-network-information": "1.3.3", "cordova-plugin-splashscreen": "4.0.3", "cordova-plugin-statusbar": "2.2.3", "cordova-plugin-whitelist": "1.3.2", "cordova-plugin-wkwebview-engine": "https://github.com/driftyco/cordova-plugin-wkwebview-engine.git#keyboard-fixes", "crypto-js": "3.1.9-1", "immutable": "3.8.1", "ionic-angular": "3.3.0-201706131302", "ionic-image-loader": "3.2.1", "ionic-plugin-keyboard": "2.2.1", "ionicons": "3.0.0", "lodash": "4.17.4", "moment": "2.18.1", "phonegap-plugin-push": "1.10.5", "reflect-metadata": "0.1.10", "rxjs": "5.4.0", "setimmediate": "1.0.5", "sw-toolbox": "3.4.0", "zone.js": "0.8.12" }, "devDependencies": { "@ionic/app-scripts": "1.3.6", "@types/node": "7.0.18", "typescript": "2.2.1" }, "cordovaPlugins": [ "cordova-plugin-statusbar", "cordova-plugin-device", "cordova-plugin-whitelist", "cordova-plugin-console", "cordova-plugin-splashscreen", "cordova-plugin-network-information", "ionic-plugin-keyboard", "cordova-plugin-app-version" ],
"dependencies": { "@angular/animations": "4.1.3", "@angular/common": "4.1.3", "@angular/compiler": "4.1.3", "@angular/compiler-cli": "4.1.3", "@angular/core": "4.1.3", "@angular/forms": "4.1.3", "@angular/http": "4.1.3", "@angular/platform-browser": "4.1.3", "@angular/platform-browser-dynamic": "4.1.3", "@ionic-native/app-version": "3.12.1", "@ionic-native/badge": "3.6.1", "@ionic-native/core": "3.6.1", "@ionic-native/device": "3.6.1", "@ionic-native/file": "3.10.3", "@ionic-native/keyboard": "3.10.3", "@ionic-native/network": "3.12.1", "@ionic-native/push": "3.12.1", "@ionic-native/splash-screen": "3.4.2", "@ionic-native/status-bar": "3.4.2", "@ionic-native/transfer": "3.10.3", "@ionic/cloud-angular": "0.12.0", "@ionic/storage": "2.0.1", "app-version": "0.0.1", "cordova-browser": "^4.1.0", "cordova-ios": "^4.5.4", "cordova-plugin-app-preferences": "^0.99.3", "cordova-plugin-app-version": "0.1.9", "cordova-plugin-appversion": "1.0.0", "cordova-plugin-badge": "0.7.4", "cordova-plugin-console": "1.0.7", "cordova-plugin-device": "1.1.6", "cordova-plugin-file": "4.3.3", "cordova-plugin-file-transfer": "1.6.3", "cordova-plugin-inappbrowser": "1.7.1", "cordova-plugin-nativestorage": "^2.3.1", "cordova-plugin-network-information": "1.3.3", "cordova-plugin-splashscreen": "4.0.3", "cordova-plugin-statusbar": "2.2.3", "cordova-plugin-whitelist": "1.3.2", "cordova-plugin-wkwebview-engine": "https://github.com/driftyco/cordova-plugin-wkwebview-engine.git#keyboard-fixes", "crypto-js": "3.1.9-1", "immutable": "3.8.1", "ionic-angular": "3.3.0-201706131302", "ionic-image-loader": "3.2.1", "ionic-plugin-keyboard": "2.2.1", "ionicons": "3.0.0", "lodash": "4.17.4", "moment": "2.18.1", "phonegap-plugin-push": "1.10.5", "reflect-metadata": "0.1.10", "rxjs": "5.4.0", "setimmediate": "1.0.5", "sw-toolbox": "3.4.0", "zone.js": "0.8.12" }, "devDependencies": { "@ionic/app-scripts": "1.3.6", "@types/node": "7.0.18", "typescript": "2.2.1" }, "cordovaPlugins": [ "cordova-plugin-statusbar", "cordova-plugin-device", "cordova-plugin-whitelist", "cordova-plugin-console", "cordova-plugin-splashscreen", "cordova-plugin-network-information", "ionic-plugin-keyboard", "cordova-plugin-app-version" ],
I have also verified the call is inside the ready event
Was able to solve the issue by getting latest from repo directly and not npm
I had a project from about 7 months ago I was trying to rebuild. When I run it on ios I get the error "Can't find variable: NativeStorage" from the polyfills file. I tried to play with versions up and down but ended with no such luck
Cordova - Version 6.5 Ionic - Version 3.20.0
Here is a list of my dependencies
"dependencies": { "@angular/animations": "4.1.3", "@angular/common": "4.1.3", "@angular/compiler": "4.1.3", "@angular/compiler-cli": "4.1.3", "@angular/core": "4.1.3", "@angular/forms": "4.1.3", "@angular/http": "4.1.3", "@angular/platform-browser": "4.1.3", "@angular/platform-browser-dynamic": "4.1.3", "@ionic-native/app-version": "3.12.1", "@ionic-native/badge": "3.6.1", "@ionic-native/core": "3.6.1", "@ionic-native/device": "3.6.1", "@ionic-native/file": "3.10.3", "@ionic-native/keyboard": "3.10.3", "@ionic-native/network": "3.12.1", "@ionic-native/push": "3.12.1", "@ionic-native/splash-screen": "3.4.2", "@ionic-native/status-bar": "3.4.2", "@ionic-native/transfer": "3.10.3", "@ionic/cloud-angular": "0.12.0", "@ionic/storage": "2.0.1", "app-version": "0.0.1", "cordova-browser": "^4.1.0", "cordova-ios": "^4.5.4", "cordova-plugin-app-preferences": "^0.99.3", "cordova-plugin-app-version": "0.1.9", "cordova-plugin-appversion": "1.0.0", "cordova-plugin-badge": "0.7.4", "cordova-plugin-console": "1.0.7", "cordova-plugin-device": "1.1.6", "cordova-plugin-file": "4.3.3", "cordova-plugin-file-transfer": "1.6.3", "cordova-plugin-inappbrowser": "1.7.1", "cordova-plugin-nativestorage": "^2.3.1", "cordova-plugin-network-information": "1.3.3", "cordova-plugin-splashscreen": "4.0.3", "cordova-plugin-statusbar": "2.2.3", "cordova-plugin-whitelist": "1.3.2", "cordova-plugin-wkwebview-engine": "https://github.com/driftyco/cordova-plugin-wkwebview-engine.git#keyboard-fixes", "crypto-js": "3.1.9-1", "immutable": "3.8.1", "ionic-angular": "3.3.0-201706131302", "ionic-image-loader": "3.2.1", "ionic-plugin-keyboard": "2.2.1", "ionicons": "3.0.0", "lodash": "4.17.4", "moment": "2.18.1", "phonegap-plugin-push": "1.10.5", "reflect-metadata": "0.1.10", "rxjs": "5.4.0", "setimmediate": "1.0.5", "sw-toolbox": "3.4.0", "zone.js": "0.8.12" }, "devDependencies": { "@ionic/app-scripts": "1.3.6", "@types/node": "7.0.18", "typescript": "2.2.1" }, "cordovaPlugins": [ "cordova-plugin-statusbar", "cordova-plugin-device", "cordova-plugin-whitelist", "cordova-plugin-console", "cordova-plugin-splashscreen", "cordova-plugin-network-information", "ionic-plugin-keyboard", "cordova-plugin-app-version" ],