question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ion-datetime-button error

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

<ion-datetime-button></ion-datetime-button> <ion-modal [keepContentsMounted]="true"> <ng-template> <ion-datetime id="datetime"></ion-datetime> </ng-template> </ion-modal>

Gives error: ‘ion-datetime-button’ is not a known element

Expected Behavior

button + modal

Steps to Reproduce

<ion-datetime-button></ion-datetime-button> with latest ionic

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 6.2.1 @angular-devkit/build-angular : 14.1.1 @angular-devkit/schematics : 13.3.9 @angular/cli : 14.1.1 @ionic/angular-toolkit : 6.1.0

Cordova:

Cordova CLI : 11.0.0 Cordova Platforms : android 11.0.0, ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 15 other plugins)

Utility:

cordova-res : 0.15.4 native-run : 1.6.0

System:

Android SDK Tools : 26.1.1 (/Users/vs/Library/Android/sdk) ios-deploy : 1.11.4 ios-sim : 8.0.2 NodeJS : v14.18.1 (/usr/local/bin/node) npm : 6.14.15 OS : macOS Monterey Xcode : Xcode 13.4.1 Build version 13F100

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
msindevcommented, Aug 7, 2022

I am facing the same issue.

1reaction
crebuhcommented, Aug 8, 2022

same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-datetime - Ionic Framework
This component displays buttons which show the current date and time values. When the buttons are tapped, the date or time pickers open...
Read more >
Date picker popup in Ionic 6 | Damir's Corner
To make the ion-datetime component appear in a popup, place it inside the ion-popover component. To display the selected date on the page,...
Read more >
ion-datetime not firing ionCancel when back button pressed ...
ion -datetime has a function ionCancel which fires when clicking cancel in the date picker. i am using following configuration- Ionic Framework: ...
Read more >
Angular Ionic 6: ion-datetime time bug - StackBlitz
Editor Preview Both. Sign in. Project. Search. Settings. Switch to Light Theme. Enter Zen Mode. Project. Download Project. Info. Angular Ionic 6: ...
Read more >
DateTime component in Ionic 6 is much more complex - Reddit
<ion-datetime (ionChange)='onTimeChange($event)' cancelText='cancel' ... Ionic 6. <ion-item button="true" id="open-date-input">
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found