Skip to content

The bun full stack dev server docs seem to be out of date or missing some info. #859

Description

@jcampuza

What is the type of issue?

Documentation is confusing

What is the issue?

I was setting up a quick app using the docs here: https://elysiajs.com/patterns/fullstack-dev-server

But ran into an issue when I ran all of this out of the box. It seems you have to pass

.use(
  await staticPlugin({
    prefix: '/',
    bunFullstack: true, // Important!
  })
)

Without this while it can render plain HTML just fine, it would not actually compile the index file using Bun's bundler if you and you'd get something like Uncaught SyntaxError: Unexpected token '<' (at main.tsx:10:3) in the browser when trying to load with JSX/React.

Where did you find it?

https://elysiajs.com/patterns/fullstack-dev-server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions