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