S
SolidJS14mo ago
Starwort

`Request is not defined` when loading a page with the solid start (basic) dev server

I created a solid-start template with bun create solid, settings (basic, no SSR, yes TypeScript), but when I run the dev server and load the page, I get an error: [h3] [unhandled] ReferenceError: Request is not defined
1 Reply
MrTact
MrTact14mo ago
I just ran into this problem while using bun. It baffled me for a minute, but I definitely needed to run bun run build before running bun run dev. It's been my experience that npm projects usually automatically build before running the server, but maybe that's some custom setup on the part of the projects I've worked with.

Did you find this page helpful?