Hi,
As per the error details which you have shared with us we have figured out that It is an issue of the ionic setup, not code issue which we have used in our App.
Can you share more details error from your terminal and console.log?
Above details are not able to us get to exact error.