Error whille using Speech Recognition plugin

Error is : win is undefined ; zone: ; task: promise.then
What does it means ?

When do you get this error?
What did you do exactly to install the plugin(s)?
What is your ionic info output?

1.get this error while ionic serve .
2.plugins used : ionic plugin add cordova-plugin-speechrecognition
npm install --save @ionic-native/speech-recognition
3.ionic info
cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.0 

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0


Android SDK Tools : 25.2.5
Node              : v8.4.0
npm               : 5.3.0 
OS                : Linux 3.19

Cordova plugins are not available on ionic serve. You have to use a ionic cordova command and test on device or emulator.

I know but its a different problem

That doesn’t make any sense. The Cordova plugin code doesn’t exist, so it cannot be executed, so it can not cause any errors. If you have a different problem, open a new topic and describe that instead of (honestly) wasting my time by saying this is a problem with the plugin.

OK…problem comes after installing this plugin thats why opened this issue.

Then post more about the error. What code is causing it? What exactly is the error?