Skip to content

Failed to fetch dynamically imported module flow-condition-types.v1.hash.js #27

@vmohir

Description

@vmohir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions