Ionic build prod error!


#1

When I build my app on prod mode (–prod) I got an error :

ionic>node node_modules\@ionic\app-scripts\bin\ionic-app-scripts.js build --prod
[15:46:07]  ionic-app-scripts 0.0.47
[15:46:07]  build prod started ...
[15:46:07]  clean started ...
[15:46:07]  clean finished in less than 1 ms
[15:46:07]  copy started ...
[15:46:07]  ngc started ...
[15:46:32]  ngc finished in 24.63 s
[15:46:32]  webpack started ...
(node:2296) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token u in JSON at position 0
[15:46:33]  copy finished in 25.19 s

with nodejs 6.9.2

any ideas?


#2

See if this helps.


#3

Thank you!
replacing my tsconfig.json with https://github.com/driftyco/ionic2-app-base/blob/master/tsconfig.json fixed my issue!