Error generating build for Ios - app in Ionic

Asked

Viewed 36 times

0

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: inserir a descrição da imagem aqui

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?

  • try npm install or install Ionic from the project again and run to see what appears

  • Or to be more direct if the above comment doesn’t help, try npm install --save @types/npm

  • It worked out buddy, thank you so much for your help!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.