so i’m building an ionic application for android and ios devices.
when i’m trying to build application in android with command ‘ionic cordova build android --prod --release’, it works fine in (on windows)
butt in ios with the same command (on mac), gives me this error:
10:35:55] typescript error
Cannot find type definition file for '@types'.
[10:35:55] ionic-app-script task: "build"
[10:35:55] Error: Failed to transpile TypeScript
Error: Failed to transpile TypeScript
at errorCheckProgram (/Users/zakaria/Desktop/untitled
folder/transatour/node_modules/@ionic/app-scripts/dist/aot/aot-
compiler.js:119:39)
at Object.<anonymous> (/Users/zakaria/Desktop/untitled
folder/transatour/node_modules/@ionic/app-scripts/dist/aot/aot-
compiler.js:89:21)
at step (/Users/zakaria/Desktop/untitled
folder/transatour/node_modules/@ionic/app-scripts/dist/aot/aot-
compiler.js:32:23)
at Object.next (/Users/zakaria/Desktop/untitled
folder/transatour/node_modules/@ionic/app-scripts/dist/aot/aot-
compiler.js:13:53)
at fulfilled (/Users/zakaria/Desktop/untitled
folder/transatour/node_modules/@ionic/app-scripts/dist/aot/aot-
compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-
scripts.
ionic-app-scripts build --prod --target cordova --platform ios
exited with exit code 1.
Re-running this command with the --verbose flag may provide
more information.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! transatour@0.0.1 build:prod:ios: `cross-env
NODE_OPTIONS='-
-max-old-space-size=8192' ionic cordova build ios --prod --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the transatour@0.0.1 build:prod:ios script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zakaria/.npm/_logs/2019-06-03T11_35_55_786Z-
debug.log