Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Property 'plugins' does not exist on type 'Window' #233

Open
Lyfei opened this issue Apr 11, 2023 · 0 comments
Open

Property 'plugins' does not exist on type 'Window' #233

Lyfei opened this issue Apr 11, 2023 · 0 comments

Comments

@Lyfei
Copy link

Lyfei commented Apr 11, 2023

code:

// @ts-ignore
window.plugins.streamingMedia.playVideo(targetUrl);

build error:

> ionic-app-scripts build
[13:43:12]  ionic-app-scripts 3.2.4 
[13:43:12]  build dev started ... 
[13:43:12]  clean started ... 
[13:43:12]  clean finished in 37 ms 
[13:43:12]  copy started ... 
[13:43:12]  deeplinks started ... 
[13:43:13]  deeplinks finished in 643 ms 
[13:43:13]  transpile started ... 
[13:43:17]  typescript: src/pages/training-list/training-list.ts, line: 153 
            Property 'plugins' does not exist on type 'Window'. 

     L152:  // @ts-ignore
     L153:  window.plugins.streamingMedia.playVideo(targetUrl);

env:

Ionic:

   Ionic CLI          : 6.20.9 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.4

Cordova:

   Cordova CLI       : 11.0.0 (cordova-lib@11.1.0)
   Cordova Platforms : android 6.4.0, browser 5.0.4, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-webview 5.0.0, (and 21 other plugins)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant