PeterStaev / nativescript-photo-editor

🎨 Easily edit an image in your NativeScript app (crop, draw, etc)
Apache License 2.0
47 stars 15 forks source link

Can't find variable: PhotoEditorDelegate #22

Closed jenyaivanova521 closed 5 years ago

jenyaivanova521 commented 5 years ago
file:///app/vendor.js:20937:98: JS ERROR ReferenceError: Can't find variable: PhotoEditorDelegate
*** JavaScript call stack:
(
)
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: PhotoEditorDelegate
at
1   @file:///app/vendor.js:20937:98
2   ../node_modules/nativescript-photo-editor/photo-editor.js@file:///app/vendor.js:20940:2
3   __webpack_require__@file:///app/bundle.js:76:34
4   ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/messenger/NewMessageModal.vue?vue&type=script&lang=js&@file:///app/bundle.js:5381:102
5   __webpack_require__@file:///app/bundle.js:76:34
6   ./components/messenger/NewMessageModal.vue?vue&type=script&lang=js&@file:///app/bundle.js:23922:217
7   __webpack_require__@file:///app/bundle.js:76:34
8   ./components/messenger/newmessagemodal.vue@file:///app/bundle.js:23890:122
9   __webpack_require__@file:///app/bundle.js:76:34
10  ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/messenger/ShowThread.vue?vue&type=script&lang=js&@file:///app<\M-b\M^@\M-&>

How can I fix this issue?

PeterStaev commented 5 years ago

Hey @jenyaivanova521 , seems you are using this in Vue. I'm not a Vue dev myself so can't really help you much. But the plugin should be working perfectly fine since the UI is made in a native library. Please make sure to clean your platforms folder / node_modules and try to rebuild your app. Hope this helps!

PeterStaev commented 5 years ago

No further response so closing this one for now. In case you still have problems, please provide more details.