honojs / honox

HonoX - Hono based meta framework
https://hono.dev
MIT License
1.66k stars 44 forks source link

ssg fails if `_error.tsx` exists #236

Open sho-hata opened 1 week ago

sho-hata commented 1 week ago

What version of HonoX are you using?

0.1.26

What steps can reproduce the bug?

  1. npm create hono@latest
  2. choose template: x-basic
  3. Change vite.config.ts as in https://github.com/honojs/honox?tab=readme-ov-file#ssg---static-site-generation
  4. bun run build

What is the expected behavior?

index.html is output to dist/.

dist
├── .vite
├── articles
├── static
├── _routes.json
├── _worker.js
├── favicon.ico
└── index.html

What do you see instead?

index.html is not output to dist/. No error message will be displayed.

dist
├── .vite
├── articles
├── static
├── _routes.json
├── _worker.js
└── favicon.ico

Additional information

sho-hata commented 1 week ago

Maybe it has something to do with this issue: https://github.com/honojs/honox/issues/234