IONIC 2.0.1: Added NPM modules not working in --prod mode

Added repo to ionic 2 project, Its working while in serve and in developement APK, but getting following error on app startup while generating apk with --prod mode-

Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open 'C:\ionic2\approach\node_modules\ionic-audio\dist\ionic-audio-interfaces.js'

Tried adding to files array in tsconfig.json

"files": [ "node_modules/ionic-audio/dist/index.ts" ]

1 Like