Dynamic import fails when flow-condition-types.v1.{hash}.js hash changes
Problem
I'm encountering a Failed to fetch dynamically imported module flow-condition-types.v1.{hash}.js error when the userflow.js library attempts to dynamically import internal modules. This happens when the hash in the filename changes between when the main script was loaded and when the dynamic import is executed.
We receive this error more than 50 times every day. I'm surprised that the hash is changing so frequently.
Error message
Failed to fetch dynamically imported module: https://js.userflow.com/es2020/ui.v1.{hash}.js
Expected Behaviour
Dynamic imports of internal modules should work reliably, even when file hashes change due to updates or deployments.
Current Behaviour
The dynamic import fails because it's trying to fetch a file with an old hash that no longer exists on the server.