TypeError: Cannot read property 'kind' of undefined at Object.isAmbientModule

#1

Anyone know how fix this error trying to do Ionic cordova run android --prod. Looked up online nothing seems to work.