Skip to content
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

bug: ion-datetime fails to load in stencil apps after v6.1.12 #25591

Closed
4 of 7 tasks
sean-perkins opened this issue Jul 7, 2022 · 1 comment
Closed
4 of 7 tasks

bug: ion-datetime fails to load in stencil apps after v6.1.12 #25591

sean-perkins opened this issue Jul 7, 2022 · 1 comment
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@sean-perkins
Copy link
Contributor

Prerequisites

Ionic Framework Version

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

Current Behavior

Using @ionic/core in a Stencil app will result in an error when using ion-datetime with v6.1.12 and later.

The following exception occurs:

TypeError: Failed to resolve module specifier "@utils/logging". Relative references must start with either "/", "./", or "../". undefined

Uncaught (in promise) Error: Constructor for "ion-datetime#undefined" was not found
    at initializeComponent (index-163bbb8a.js:2040:23)

Stencil will additionally warn:

[ WARN  ]  Bundling Warning UNRESOLVED_IMPORT
           '@utils/logging' is imported by
           ./node_modules/@ionic/core/dist/collection/components/datetime/utils/comparison.js, but could not be
           resolved – treating it as an external dependency

Expected Behavior

Datetime should display within a Stencil application.

Steps to Reproduce

  1. Include @ionic/core in a Stencil app
  2. Add ion-datetime to your template
  3. 💥

Code Reproduction URL

https://github.com/sean-perkins/stencil-ion-datetime

Ionic Info

Ionic Core: 6.1.12+

Additional Information

Split from: #25588 (comment)

@ionitron-bot ionitron-bot bot added the triage label Jul 7, 2022
@sean-perkins sean-perkins added package: core @ionic/core package type: bug a confirmed bug report labels Jul 7, 2022
@ionitron-bot ionitron-bot bot removed triage labels Jul 7, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Aug 7, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Aug 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

1 participant