Skip to content

Quick Start example fails when using Bun #7124

@renatodantas

Description

@renatodantas

Which project does this relate to?

Router

Describe the bug

Following documentation for initialize a new TanStack Router project using Bun is throwing an error.

Your Example Website or App

N/A

Steps to Reproduce the Bug or Issue

  1. Check if last Bun runtime is installed and in path (version reference: 1.3.11)
  2. Try to create a new project with documentation example: bunx @tanstack/cli create --router-only
  3. See the console throwing the error.
SyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async loadESM (node:internal/process/esm_loader:91:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12)

Expected behavior

I expect the project to be created correctly as if I creating it with npm or pnpm.

Screenshots or Videos

No response

Platform

  • Router / Start Version: latest
  • OS: macos Tahoe 26.5
  • Hardware: Macbook Air M1
  • Browser: N/A
  • Bundler: bun
  • Bundler version: 1.3.11

Additional context

No response

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