Got latest from the TFS, working with Windows 10
(If you want to be sure not to hurt current branch – create a branch.)
in angular.js
-> projects – Changed the name of the app
-> “outputPath”: “www”,
In package.js
-> “name”: “eezyimport”, – to fit angular.js
In tsconfig.js
-> target changed to ES2015 from es5
PS D:\dev\CBY.client\CBY> npm run install
PS D:\dev\CBY.client\CBY> ng add @ionic/angular
PS D:\dev\CBY.client\CBY> ionic init
PS D:\dev\CBY.client\CBY> npm install
Not working – ng run app:ionic-cordova-build –platform=android exited with exit code 127. – project doesn’t exist message.
Tried in several folders
PS D:\dev\CBY.client\CBY> ionic cordova run android –project=”eezyimport” –verbose
PS D:\dev\CBY.client\CBY\src> ionic cordova run android –project=”eezyimport” –verbose
Then, just followed the terminal propositions to install ionic globally:
PS D:\dev\CBY.client\CBY>npm i -g ionic
PS D:\dev\CBY.client\CBY>ionic cordova build
PS D:\dev\CBY.client\CBY>npm i -g native-run
It started running, but fails.. One of the options, maybe circular references??
https://dev.to/a_shokn/how-to-convert-your-existing-angular-project-to-an-ionic-app-465l
Not working –
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
Good post with a lot of directions to solve the issue of
https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas/55684276
PS D:\dev\CBY.client\CBY>set NODE_OPTIONS=–max_old_space_size=8096
PS D:\dev\CBY.client\CBY>ionic cordova run android –project=”eezyimport” –verbose –build-optimizer=true –aot=true
They are saying we need to upgrade to Node 12
PS D:\dev\CBY.client\CBY> node -v
v10.13.0
At the end upgraded through this post
Needed to run cmd as admin
https://stackoverflow.com/questions/18412129/how-can-i-update-npm-on-windows
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade
No VS becomes irresponsive and fails.