Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

What's wrong with plugin with ngx appended

$
0
0

@pdj wrote:

Hello
i install imagepicker plugin and it comes with ngx appended.
and when I do ionic serve with iphone version in chrome, it has below error.
normally, it should evoke error saying cordova not available .
ngx appended is for ionic 4???
I deleted ngx on import like belows
import { ImagePicker } from ‘@ionic-native/image-picker’;
then, it evoke error
on constructor(public imagePicker:ImagePicker )
cannot find name ImagePicker

CameraselectPage.html:15 ERROR TypeError: Object(...) is not a function
    at ImagePicker.getPictures (index.js:32)
    at CameraselectPage.webpackJsonp.168.CameraselectPage.getPhoto (cameraselect.ts:69)
    at Object.eval [as handleEvent] (CameraselectPage.html:15)
    at handleEvent (core.js:13589)
    at callWithDebugContext (core.js:15098)
    at Object.debugHandleEvent [as handleEvent] (core.js:14685)
    at dispatchEvent (core.js:10004)
    at core.js:10629
    at HTMLButtonElement.<anonymous> (platform-browser.js:2628)
    at t.invokeTask (polyfills.js:3)

10

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>