Skip to content

Failed to import - convex/browser #1270

@guillaumebrunerie

Description

@guillaumebrunerie

Failing module

import { ConvexClient } from "https://esm.sh/convex@1.31.2/browser"

Error message

After onload I got this:

GET https://esm.sh/sync/client?target=es2022 net::ERR_ABORTED 404 (Not Found)
GET https://esm.sh/components/paths?target=es2022 404 (Not Found)

Additional info

The contents of https://esm.sh/convex@1.31.2/browser looks pretty suspicious:

/* esm.sh - convex@1.31.2/browser */
import "/./components/paths?target=es2022";
import "/./sync/client?target=es2022";
import "/convex@1.31.2/es2022/convex.mjs";
import "/convex@1.31.2/es2022/values.mjs";
export * from "/convex@1.31.2/es2022/browser.mjs";
export { default } from "/convex@1.31.2/es2022/browser.mjs";

Compare to version 1.31.1 for instance:

/* esm.sh - convex@1.31.1/browser */
import "/convex@1.31.1/es2022/convex.mjs";
import "/convex@1.31.1/es2022/dist/esm/browser/logging.mjs";
import "/convex@1.31.1/es2022/dist/esm/browser/sync/paginated_query_client.mjs";
import "/convex@1.31.1/es2022/dist/esm/browser/sync/udf_path_utils.mjs";
import "/convex@1.31.1/es2022/dist/esm/common/index.mjs";
import "/convex@1.31.1/es2022/dist/esm/server/api.mjs";
import "/convex@1.31.1/es2022/dist/esm/values/errors.mjs";
import "/convex@1.31.1/es2022/dist/esm/vendor/long.mjs";
import "/convex@1.31.1/es2022/values.mjs";
export * from "/convex@1.31.1/es2022/browser.mjs";

Not sure if it’s an issue at Convex or at esm.sh but I couldn’t see any suspicious changes in Convex between 1.31.1 and 1.31.2. Also reported at get-convex/convex-js#116 in case it is a Convex issue.

  • Browser info: Chrome 143.0.7499.169 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    browserNot working in Browser

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions