`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
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.