A rest parameter must be of an array type - typescript

when i try to create build using ionic cordova build android --prod i ma getting errors with too many lines in file typescript: node_modules/@types/node/index.d.ts, line: 6695

A rest parameter must be of an array type.

L6673: prependOnceListener(event: “finish”, listener: () => void): this;

and this cause the failure of building the APK.i am not sure about what is wrong,but without using --prod,it works