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
- Check if last Bun runtime is installed and in path (version reference: 1.3.11)
- Try to create a new project with documentation example:
bunx @tanstack/cli create --router-only
- 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
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.
bunx @tanstack/cli create --router-onlySyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener'Your Example Website or App
N/A
Steps to Reproduce the Bug or Issue
bunx @tanstack/cli create --router-onlyExpected behavior
I expect the project to be created correctly as if I creating it with npm or pnpm.
Screenshots or Videos
No response
Platform
Additional context
No response