I cannot see any .tsx file inside my src/ #21427
Unanswered
withhloveee
asked this question in
Q&A
Replies: 1 comment
-
|
Hey! This is a known issue with bun create vite - not your IDE. Solution 1: Specify template explicitly bun create vite my-app --template react-tsSolution 2: Use npm for scaffolding, then Bun npm create vite@latest my-app -- --template react-ts
cd my-app
bun install
bun run devThis way you get proper project structure and still use Bun for development. Solution 3: Update and clear cache bun upgrade
bun pm cache rm
bun create vite my-app --template react-tsSince npm create vite works for you, the second approach is easiest. This is more of a Bun issue than Vite - you can report to oven-sh/bun if template flag doesnt help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I recently had a issue while I was learning react
I was using the command -> bun create vite my-react-app
and I noticed that inside the src folder I cannot see any .tsx files all I could see were css files.
then I tried the same command using npm and it worked.
my bun --version : 1.3.5
my npm --version : 10.9.0
here are the video and image proof of the issue.
issue video link on YT : https://youtu.be/2EXRRbPgdJY
issue when I click on the url :

Reproduction
bun create vite my-react-app
Steps to reproduce
bun create vite my-react-app
System Info
System: OS: Windows 11 10.0.22631 CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H Memory: 2.48 GB / 15.63 GB Binaries: Node: 22.11.0 - C:\Program Files\nodejs\node.EXE npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD bun: 1.3.5 - C:\Users\ASUS\.bun\bin\bun.EXE Browsers: Chrome: 143.0.7499.193 Edge: Chromium (140.0.3485.54) Internet Explorer: 11.0.22621.3527Used Package Manager
bun
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions