Which project does this relate to?
Router
Describe the bug
I can't import any bun libraries like s3, redis, hashing/crypto, etc in my Tanstack monorepo project. I get the error: "Cannot find module 'bun'". I have tested both in server action files, as well as a s3 package which gets imported into the web project.
Your Example Website or App
https://github.com/DeckardGer/bun-tanstack-test
Steps to Reproduce the Bug or Issue
- bun install
- bun run dev
- Navigate to localhost:3001/api/bun-test
- Look in server logs for error
Expected behavior
I should be receiving a hash created using the hash library from bun
Screenshots or Videos
Platform
- Router / Start Version: 1.141.1
- OS: MacOS
- Browser: Arc
- Browser Version: 1.140.0
- Bundler: Vite
- Bundler Version: 7.0.2
Additional context
No response
Which project does this relate to?
Router
Describe the bug
I can't import any bun libraries like s3, redis, hashing/crypto, etc in my Tanstack monorepo project. I get the error: "Cannot find module 'bun'". I have tested both in server action files, as well as a s3 package which gets imported into the web project.
Your Example Website or App
https://github.com/DeckardGer/bun-tanstack-test
Steps to Reproduce the Bug or Issue
Expected behavior
I should be receiving a hash created using the hash library from bun
Screenshots or Videos
Platform
Additional context
No response