Hello!
I’m new to Ionic, and I have to debug and compile an Android app which was created by another person a few months ago, and who’s not in the team anymore (I joined after he left).
The development lasted from the 22th of Nov 2016 to the 27th of January in 2017.
The 1st commit in git contained the following information in package.json :
+ "scripts": {
+ "ionic:build": "ionic-app-scripts build",
+ "ionic:serve": "ionic-app-scripts serve"
+ },
+ "dependencies": {
+ "@angular/common": "2.1.1",
+ "@angular/compiler": "2.1.1",
+ "@angular/compiler-cli": "2.1.1",
+ "@angular/core": "2.1.1",
+ "@angular/forms": "2.1.1",
+ "@angular/http": "2.1.1",
+ "@angular/platform-browser": "2.1.1",
+ "@angular/platform-browser-dynamic": "2.1.1",
+ "@angular/platform-server": "2.1.1",
+ "@ionic/storage": "1.1.6",
+ "ionic-angular": "2.0.0-rc.2",
+ "ionic-native": "2.2.3",
+ "ionicons": "3.0.0",
+ "rxjs": "5.0.0-beta.12",
+ "zone.js": "0.6.21"
+ },
+ "devDependencies": {
+ "@ionic/app-scripts": "0.0.44",
+ "typescript": "2.0.6"
+ },
+ "cordovaPlugins": [
+ "cordova-plugin-whitelist",
+ "cordova-plugin-console",
+ "cordova-plugin-statusbar",ioni
+ "cordova-plugin-device",
+ "ionic-plugin-keyboard",
+ "cordova-plugin-splashscreen"
And those numbers are the same after the last commit.
I tried to upgrade the whole thing to IONIC 3 but it went nowhere. I may do that later but it will take some time, and right now I need to compile an APK in the coming days.
My best chance is to get the same working environment as the initial developer.
I uninstalled everything and installed ionic and cordova on these versions :
Ionic 2.2.3 (indicated in package.json)
Cordova 6.3.0 (didn’t see the version anywhere but it seems like it was the recent version in november 2016)
Tried a “npm install” which gave red flags :
+-- UNMET PEER DEPENDENCY @ionic/app-scripts@0.0.44
+-- UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12
The ionic serve gave a blank page, with the following error in the console :
build dev failed: Cannot set property ‘fileSystem’ of null
I then installed @ionic/app-scripts@0.0.44 to get as close as possible to the initial environment… (but should I move the order of the dependencies in the json to avoid these errors?)
Same result when I launch serve, still “build dev failed: Cannot set property ‘fileSystem’ of null”…
I’ve seen a few pages on the web talking about this error message, but can’t see any solution which would seem relevant to my case (I did try some things I saw there when I was trying with different versions of Ionic, Cordova and so on… to on avail).
ordova CLI: 6.3.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 0.0.44
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.3
Xcode version: Not installed
The result of npm install now :
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @ionic-native/core@3.7.0 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @ionic-native/splash-screen@3.7.0 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @ionic-native/status-bar@3.7.0 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @ionic/cli-plugin-ionic-angular@1.0.0 requires a peer of @ionic/app-scripts@^1.3.1 but none was installed.
The target platform will be android, but for now I’d just like to get something working on my dev environment !
I’m pretty close to what the initial dev used. Any idea on what could be the problem right now?
Thanks!