Skip to content

bug: l[f] is not a function in versions newer than 4.39.0 #6658

@jcesarmobile

Description

@jcesarmobile

Prerequisites

Stencil Version

4.40.0 or newer

Current Behavior

update to stencil 4.40.0 broke IonModal on an Ionic 7 react app, trying to present the modal shows l[f] is not a function

Expected Behavior

the modal should appear and nothing should break in minor updates

System Info

Steps to Reproduce

In this PR the stencil/core version was updated from 4.39.0 to 4.42.1
https://github.com/ionic-team/capacitor-testapp/pull/765/changes#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519L2915

That caused the modal on Local Notifications/Push Notifications pages to break

Steps to reproduce

  1. Clone repository https://github.com/ionic-team/capacitor-testapp
  2. npm install
  3. npm run build
  4. npx cap sync android
  5. npx cap open android
  6. Run the app on an Android emulator or device
  7. Go to Local Notifications or Push Notifications page
  8. Click "Create Notification Channel" button and see that nothing happens

If you install npm install @stencil/core@4.39.0 --save-exact and repeat steps from 3 to 8 you'll see the modal now appears.

The app is now using @stencil/core@4.43.3 (latest at the moment) and still not working, so the issue is still present.

Code Reproduction URL

https://github.com/ionic-team/capacitor-testapp

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions