davecoffin / nativescript-modal-datetimepicker

Apache License 2.0
59 stars 36 forks source link

Uncaught ReferenceError: NativeClass is not defined NS7 on iOS14.2 #77

Closed mreall closed 3 years ago

mreall commented 3 years ago

I get the following error when trying to run on a device using nativescript-modal-datetimepicker v2.1.2. The app builds successfully, then immediately crashes when loading the app.

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught ReferenceError: NativeClass is not defined
at
../node_modules/nativescript-modal-datetimepicker/modal-datetimepicker.js(file: node_modules/nativescript-modal-datetimepicker/modal-datetimepicker.ios.js:27:0)
at __webpack_require__(file: app/webpack/bootstrap:74:0)
at ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/em-components/Answer.vue?vue&type=script&lang=js&(file:///app/bundle.js:1612:91)
at __webpack_require__(file: app/webpack/bootstrap:74:0)
at ./components/em-components/Answer.vue?vue&type=script&lang=js&(file: app/components/em-components/Answer.vue?1420:1:0)
at __webpack_require__(file: app/webpack/bootstrap:74:0)
at ./components/em-components/Answer.vue(file: app/components/em-components/Answer.vue:1:0)
at __webpack_require__(file: app/webpack/bootstrap:74:0)
at ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/em-components/Memory.vue?vue&type=script&lang=js&(file:///app/bundle.js:4765:65)
at __webpack_require__(file: app/webpack/bootstrap:74:0)
at ./<\M-b\M^@\M-&>

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

The app fails immediately when I try to run it on iOS. Works fine on Android.

paul-muckypuddle commented 3 years ago

Also expewrienceing this issue. Looks like it occurs on another package and they've got a fix - see

https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/248/files

mreall commented 3 years ago

Thanks @paul-muckypuddle and @Logikgate. FYI @davecoffin, would you mind to review the PR and publish the update when you have a minute?