pbakondy / cordova-plugin-speechrecognition

:microphone: Cordova Plugin for Speech Recognition
MIT License
197 stars 117 forks source link

plugin does not work with ionic 5 #114

Open moblizeitllc opened 3 years ago

moblizeitllc commented 3 years ago

when i try it fails with error at run time Uncaught TypeError: Object(...) is not a function at index.js:166 at Module../node_modules/@ionic-native/speech-recognition/ivy_ngcc/index.js (index.js:269) at webpack_require (bootstrap:84) at Module../src/app/app.module.ts (app.component.ts:12) at webpack_require (bootstrap:84) at Module../src/main.ts (main.ts:1) at webpack_require (bootstrap:84) at Object.0 (main.ts:12) at __webpack_require__ (bootstrap:84) at checkDeferredModules (bootstrap:45)

my package.json is

{ "name": "beyond-mask", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "~9.1.6", "@angular/core": "~9.1.6", "@angular/forms": "~9.1.6", "@angular/platform-browser": "~9.1.6", "@angular/platform-browser-dynamic": "~9.1.6", "@angular/router": "~9.1.6", "@ionic-native/core": "^5.0.7", "@ionic-native/speech-recognition": "^4.20.0", "@ionic-native/splash-screen": "^5.0.0", "@ionic-native/status-bar": "^5.0.0", "@ionic/angular": "^5.0.0", "cordova-plugin-speechrecognition": "^1.2.0", "rxjs": "^6.6.0", "rxjs-compat": "^6.6.0", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.901.5", "@angular/cli": "~9.1.5", "@angular/compiler": "~9.1.6", "@angular/compiler-cli": "~9.1.6", "@angular/language-service": "~9.1.6", "@ionic/angular-toolkit": "^2.1.1", "@types/node": "^12.11.1", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "codelyzer": "^5.1.2", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~5.0.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~2.1.0", "karma-jasmine": "~3.0.1", "karma-jasmine-html-reporter": "^1.4.2", "protractor": "~5.4.3", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~3.8.3" }, "description": "An Ionic project", "cordova": { "plugins": { "cordova-plugin-speechrecognition": {} } } }