NativeScript / nativescript-imagepicker

Imagepicker plugin supporting both single and multiple selection.
Apache License 2.0
104 stars 74 forks source link

Plug-in does not work in NativeScript 8 #337

Closed Synax42 closed 3 years ago

Synax42 commented 3 years ago

When attempting to use this plug-in with NativeScript 8, once you add an import or require pointing to this plug-in 3 errors are thrown when compiling for Android and 8 for iOS all relating to core nativescript modules.

Platforms: Both NS/Android: 8.0.0 NS/iOS: 8.0.0

Device: Android S7, iPhone 7

Pull any of the NativeScript 8 templates, install the imagepicker plugin and attempt to reference the plugin on any page and run the app.

I have attempted to reference it both ways: var imagepicker = require("nativescript-imagepicker"); import * as imagepicker from "nativescript-imagepicker";

Sarfaraaz commented 3 years ago

You'll want to use this instead for NS7 and beyond. https://www.npmjs.com/package/@nativescript/imagepicker

Synax42 commented 3 years ago

Thank you so much, and sorry I didn't see that.... I blame having an 8 month old haha. I just didn't notice the addition of the @ in posts. Thanks again.