Skip to content

[bug]: Algolia JS Client cause Bun to crash on Hono #1601

Description

@SamJbori

Description

I am creating a template for few projects I am starting to work on, using Turbo Repo, Hono, and BunJS runtime, everything works fine until I add algoliasearch package, the dev works fine, build too, but the Hono app fail to start on Vercel

This is the repo T3Bun

Client

Search

Version

5.46.0

Relevant log output

No Log outpus

Activity

  1. Haroenv commented on Dec 15, 2025

    @Haroenv
    Contributor

    https://github.com/SamJbori/t3bun/blob/fd61883c5b044544d927da7ba78697f4ffb92d94/apps/server/src/index.ts#L5

    This should be:

    import { searchClient } from 'algoliasearch'

    not sure where you got the other export from, but it never existed.

  2. SamJbori commented on Dec 15, 2025

    @SamJbori
    Author

    Unfortunately it's not the issue, I must mistype this line after I tried removing and putting back the package to make sure the issue is isolated in the algoliasearch package.

    My Vercel function keeps on crashing after successful deployment when I add algoliasearch package again.

  3. Haroenv commented on Dec 15, 2025

    @Haroenv
    Contributor

    Please attach a stack frame of the error or a way to reproduce this locally then :) Maybe it's related to package resolution

  4. SamJbori commented on Dec 15, 2025

    @SamJbori
    Author

    Sure!
    I've updated the .env.example with needed env variables, all you need is to clone and deploy to vercel, I've provided a temp demo mongodb url to offload that, everything else should be good

  5. PrevailUgah commented on Mar 31, 2026

    @PrevailUgah

    I'm a Full Stack developer and I've been following this issue. Since the import change didn't resolve the Vercel/Bun crash, I'm going to investigate the FetchRequester compatibility in the Bun runtime specifically on Vercel's edge. I'll attempt to reproduce this using the provided T3Bun template. Please assign this to me if possible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions