elysia
elysia copied to clipboard
404 on any URL
What version of Elysia is running?
1.1.29
What platform is your computer?
Docker
What steps can reproduce the bug?
docker run -it --rm -v "$(pwd):/app" -w /app oven/bun:latest sh
Unable to find image 'oven/bun:latest' locally
latest: Pulling from oven/bun
ba83bbfca944: Already exists
f6f83b953810: Already exists
0804653e8134: Already exists
5b027434e92d: Already exists
cb42e1f96f89: Already exists
Digest: sha256:eb409bed239c3adff079a6b71283f151e802d66b99f643ba7a71e1be7d3da513
Status: Downloaded newer image for oven/bun:latest
# bun create elysia app
$ bun install
bun install v1.1.29 (6d43b366)
+ [email protected]
+ [email protected]
9 packages installed [2.08s]
[2.10s] bun install
[2.83s] bun create elysia
Come hang out in bun's Discord: https://bun.sh/discord
-----
Dependencies were installed automatically.
Created elysia project successfully
# To get started, run:
cd app
bun run src/index.ts
# cd app
# bun run src/index.ts
🦊 Elysia is running at localhost:3000
What is the expected behavior?
We are expecting a 200 return code from the URL.
What do you see instead?
% curl localhost:3000/
Hello Elysia%
% curl localhost:3000/ -I
HTTP/1.1 404 Not Found
content-type: text/plain;charset=utf-8
Date: Wed, 02 Oct 2024 16:36:53 GMT
Content-Length: 9
Additional information
It seems any routes I create will result in a 404.
Have you try removing the node_modules
and bun.lockb
and try again yet?
yes