bug: react: useIonAlert fails in production (but works in dev) #24116
Labels
package: core
@ionic/core package
type: bug
a confirmed bug report
v6
issues specific to Framework v6
Prerequisites
Ionic Framework Version
Current Behavior
Using
useIonAlert()
in an Ionic React 6.x project works in dev mode (ionic serve
) but silently fails in production (ionic build --production
).Basically, any use of alert dialogs fails in production, but works fine in the local dev server. Super annoying.
Expected Behavior
Clicking the TEST button should bring up the test
alert
dialog just as it does inionic serve
mode.Steps to Reproduce
Here's a full test repo for you:
https://github.com/burggraf/ionic-react-alert-bug
Let me know if you need anything else to reproduce this. I have verified this is specific to 6.x. Compiling with
ionic build --prod
seems to work fine in the 5.x environment.Code Reproduction URL
https://github.com/burggraf/ionic-react-alert-bug
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: