I am running the following command to generate the build:
ionic cordova build ios --prod
or
ionic cordova build ios --prod --release
Version of typescript installed: 2.6.2
this is the error when running the command:
I can open the project in Xcode and run in emulator normally.
1 answer
1
Recently I had this problem, perform the following steps and try again
1 - Remove @Ionicpage () from files .ts
2 - Excludes .module.ts
I did this process, and tried to run the command again, and gave the following error: Cannot find type Definition file for '@types'. you know what can be?
I did this process, and tried to run the command again, and gave the following error: Cannot find type Definition file for '@types'. you know what can be?
– Murilo Krugner
try npm install or install Ionic from the project again and run to see what appears
– Eric Montelares
Or to be more direct if the above comment doesn’t help, try npm install --save @types/npm
– Eric Montelares
It worked out buddy, thank you so much for your help!
– Murilo Krugner