Skip to content

Not compatible with Angular 17? #2193

Description

@adamdport

Prerequisites

  • I am using the latest version (v29.2.3) of both intl-tel-input and utils.js.
  • We use libphonenumber for formatting, validation, and placeholder numbers. If my issue relates to one of these things, I confirm I have used their test site to ensure the issue is not with them, and will provide a link to the test results page showing this. Else, I have reported the issue to them instead of here.
  • I have searched the existing issues (including closed issues) to ensure this has not already been discussed.

Integration

Angular component

Current behaviour

The package.json in the Angular package indicates that the library is intended to be compatible with Angular 17+. However, upon installing it into an Angular 17 project, I end up getting a cryptic error:

TypeError: (void 0) is not a function
    at IntlTelInput_Template (IntlTelInput.js:5315:10)
    at executeTemplate (core.mjs:11268:9)
    at renderView (core.mjs:12470:13)
    at renderComponent (core.mjs:12416:5)
    at renderChildComponents (core.mjs:12518:9)
    at renderView (core.mjs:12498:13)
    at renderComponent (core.mjs:12416:5)
    at renderChildComponents (core.mjs:12518:9)
    at renderView (core.mjs:12498:13)
    at renderComponent (core.mjs:12416:5)

Looking at that line I see the following:

i0.\u0275\u0275domElementStart(0, "input", 1, 0);

If I downgrade to 26.9.2 I'm able to get this project installed and working.

Expected behaviour

Either the project is rebuilt so that it's compatible with Angular 17, or Angular 17 is removed from the list of compatible versions in the package.json

Steps to reproduce

  1. Install the library in an Angular 17 project
  2. Try to load a component with
  3. Observe that we see a runtime crash with the void 0 error

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions