Hello everyone,
I am having trouble building an app that was developed long time ago using ionic v1, and would love to get some help.
Looking in this forum, stackoverflow and github, I found a lot of solutions for similar problems but unfortunately, none of them worked for me.
The problem is when I serve the app in the browser, the app starts without errors from the cmd, but it is not able to launch correctly.
In the chrome console, I’m getting 404 errors as well as “angular is not defined” errors, and it seems that the app is looking for files using the new version’s resource addresses (i.e in localhost/assets/…) :
The steps I used to build:
changing ionic.project to ionic.config.json
npm install -g ionic cordova bower gulp
npm install
bower install
gulp build
So far, I have tried re-installing all related packages (ionic-cli 2 and 3, cordova, angular) and even the entire nodejs installation, with no success.
To run the app, I tried:
ionic serve
ionic serve --v1
ionic serve --type iconic1
ionic serve ionic-angular
My ionic info:
cli packages: (C:\Users\user\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.10.2
ionic (Ionic CLI) : 3.10.3
global packages:
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
Ionic Framework : ionic1 1.1.0
System:
Node : v6.11.3
npm : 3.10.10
OS : Windows 8
and part of my package.json may be helpful:
{
"name": "myapp",
"version": "1.0.0",
"description": "An Ionic project",
"dependencies": {
"angular": "^1.5.8",
"angular-base64-upload": "^0.1.19",
"ionic-material": "^0.4.1",
"ionic-sdk": "^1.3.0",
"jquery": "^3.1.0",
"leaflet": "^0.7.7",
"localforage": "^1.4.2",
"ng-cordova": "^0.1.27-alpha",
"svg-morpheus": "^0.3.0",
"ui-leaflet": "^1.0.1"
},
.
.
.
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"com.ionic.keyboard",
"org.apache.cordova.geolocation"
],
"cordovaPlatforms": [
"android"
]
}
I appreciate all your help.