Cordova Plug-in not recognized

Hello experts,

After reinstalling my development environment my ionic app started throwing following error -

TypeError: undefined is not an object (evaluating ‘window.cordova.plugins.Keyboard’)
Error: Can’t find variable: Media

package.json does have mention of keyboard and device plugin.

I have spent two weeks researching with no success.
Any help will be greatly appreciated

have you install the keyboard plugin, if yes try cordova.plugins.Keyboard this one in your app.js

Yes, both the plugins are installed. Do you mean try without ‘window.’ ?

yes try it without window…

Unfortunately that didn’t help. Besides my main problem is Media error for playing Audio files