How to fix “error evaluating ‘window.cordova.plugins.Keyboard'”

Sometimes when building an Ionic project I start getting: "undefined is not an object (evaluating 'window.cordova.plugins.Keyboard')" issue with the project plugins. To resolve this issue you can try running:

ionic state reset in your project folder.

This should reset your ionic plugins in your project folder.