Skip to content

[nativescript-datetimepicker] iOS 14 display error #75

New issue

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

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

Already on GitHub? Sign in to your account

Closed
bergerbyte opened this issue Sep 21, 2020 · 8 comments · Fixed by #76
Closed

[nativescript-datetimepicker] iOS 14 display error #75

bergerbyte opened this issue Sep 21, 2020 · 8 comments · Fixed by #76

Comments

@bergerbyte
Copy link

With nativescript 6.8 and Angular the datetimepicker no longer works under iOS 14

Bildschirmfoto 2020-09-21 um 16 16 11

@Cateye82
Copy link

I am facing the same issue, but saw the hint for the 2.0.0 Version:

NativeScript 7
Use @nativescript/datetimepicker: ~2.0.0
Source managed here: https://github.com/NativeScript/plugins

So I went there, downloaded the code, ran "npm run setup" and "npm start", selected the "datetimepicker" and it was generating some stuff into the "dist" folder.

Then I tried many things from copying it into the "nativescript-datetimepicker" folder and to "npm run publish-packages" but it seems that I am always ending up with the following error:

ERROR in ../node_modules/nativescript-datetimepicker/angular/fesm2015/nativescript-datetimepicker-angular.js Module not found: Error: Can't resolve '@nativescript/datetimepicker' in '/Users/cj/Documents/git/mtbappmobile/node_modules/nativescript-datetimepicker/angular/fesm2015' @ ../node_modules/nativescript-datetimepicker/angular/fesm2015/nativescript-datetimepicker-angular.js 3:0-102 209:41-56 210:41-56 211:46-66 @ ./app/shared/shared.module.ts @ ./app/app.module.ts @ ./main.ts
Should it be placed somewhere into the "node_modules/@NativeScript" folder?

The next thing I tried was:
https://github.com/NativeScript/plugins/tree/master/packages/datetimepicker
If you scroll down a little bit you will see the "ns plugin add @nativescript/datetimepicker" command which makes more sense. So I removed the old datetimepicker and used this command to install the new one. Also I changed the import statement. Then I am facing the following error:

Successfully transferred all files on device 02FF70FF-FFFC-4616-9FE3-4755FD304763. Restarting application on device 02FF70FF-FFFC-4616-9FE3-4755FD304763... CONSOLE LOG: Loading inspector modules... CONSOLE LOG: Finished loading inspector modules. ***** Fatal JavaScript exception - application has been terminated. ***** NativeScript encountered a fatal error: Uncaught TypeError: _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Property is not a constructor at ../node_modules/@nativescript/datetimepicker/ui/picker-field-base.js(file: node_modules/@nativescript/datetimepicker/ui/picker-field-base.js:35:0) at __webpack_require__(file: src/webpack/bootstrap:750:0) at fn(file: src/webpack/bootstrap:120:0) at ../node_modules/@nativescript/datetimepicker/ui/date-picker-field.common.js(file: node_modules/@nativescript/datetimepicker/ui/date-picker-field.common.js:1:0) at __webpack_require__(file: src/webpack/bootstrap:750:0) at fn(file: src/webpack/bootstrap:120:0) at ../node_modules/@nativescript/datetimepicker/ui/date-picker-field.js(file: node_modules/@nativescript/datetimepicker/ui/date-picker-field.ios.js:1:0) at __webpack_require__(file: src/webpack/bootstrap:750:0) at fn(file: src/webpack/bootstrap:120:0) at ../node_modules/@nativescript/datetimepicker/ui/index.js(file: node_modules/@nativescript/datetimepicker/ui/index.js:1:0) at __webpack_require__(file: src/webpack/bootstrap:750:0) at fn(file: src/webpack/bootstrap:120:0) at ../node_modules/@nativescript/datetimepicker/index.js(file:///app/vendor.js:1395<…> (CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Property is not a constructor at .... NativeScript debugger was not able to get inspector socket port on device 02FF70FF-FFFC-4616-9FE3-4755FD304763 for application

Then I tried moving the generated files inside the "dist" folder to the "@nativescript/datetimepicker/angular" folder.
But this is ending up in the same error.

I have no ideas any more, can somebody please explain how to use it?
Thank you.

@alexander-mai
Copy link
Contributor

Duplicate of #69

@NathanWalker
Copy link
Contributor

published in @nativescript/datetimepicker 2.0.3

@mreall
Copy link

mreall commented Sep 29, 2020

That works. Thanks @alexander-mai and @NathanWalker!

@dimitriospafos
Copy link

Is there a fix for earlier version for people who don't use Nativescript 7?

@NathanWalker
Copy link
Contributor

@dimitriospafos yes I can backport this - we've generally been backporting upon request. thanks for ping, i'll try to get this out tonight.

@dimitriospafos
Copy link

@NathanWalker thanks, I really appreciate it

@Upd4ting
Copy link

Is this somehow related? NativeScript/plugins#128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants