Closed PhilGauths closed 5 years ago
In the cloned repo, edit package.json
"devDependencies": {
"@ionic/app-scripts": "3.2.2",
"opn": "^5.1.0",
+ "typescript": "3.6.2"
}
rm -rf node_modules
npm install
Try again
thanks, this solve the problem
I follow instruction to compile from scratch and always have this error
ionic cordova prepare android
[10:23:44] ionic-app-script task: "build" [10:23:44] Error: Failed to transpile program Error: Failed to transpile program at new BuildError (C:\Users\JPhil\Documents\towsoft\try ionic\cordova-background-geolocation-SampleApp\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28) at C:\Users\JPhil\Documents\towsoft\try ionic\cordova-background-geolocation-SampleApp\node_modules\@ionic\app-scripts\dist\transpile.js:159:20 at new Promise ()
at transpileWorker (C:\Users\JPhil\Documents\towsoft\try ionic\cordova-background-geolocation-SampleApp\node_modules\@ionic\app-scripts\dist\transpile.js:107:12)
at Object.transpile (C:\Users\JPhil\Documents\towsoft\try ionic\cordova-background-geolocation-SampleApp\node_modules\@ionic\app-scripts\dist\transpile.js:64:12)
at C:\Users\JPhil\Documents\towsoft\try ionic\cordova-background-geolocation-SampleApp\node_modules\@ionic\app-scripts\dist\build.js:109:82
[ERROR] An error occurred while running subprocess ionic-app-scripts.
any help will be appreciate