guocaoyi / create-chrome-ext

🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
MIT License
1.42k stars 106 forks source link

Creating a `react-ts` project results in a 404 page on initial bootstrap #62

Closed ajhenry closed 8 months ago

ajhenry commented 8 months ago

Hi there, great work you're doing here!

I'm trying to use the react-ts starter for this project and am running into an issue with trying to get vite to load the default React page.

The problem, after bootstrapping the project I am met with the following Browser error

Image

Reproduction

npm create chrome-ext@latest chrome -- --template react-ts
cd chrome
npm i
npm run dev

Vite compiles successfully but only serves the 404 page

ajhenry commented 8 months ago

I realized my build folder was deleted 🙄

WsK commented 3 months ago

I am seeing the same problem though. I do have the build directory after manually ran npm run build.