We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.26
WSL Ubuntu
// index.ts import { Elysia } from "elysia"; const yay = async () => { await Bun.sleep(2_000); return new Elysia({ name: "yay" }).get("/yay", "yay"); }; const wrapper = new Elysia({ name: "wrapper" }).use(yay()); // await wrapper.modules; <- this is missing inside elysia const app = new Elysia().use(wrapper).listen(3000); console.log(`${app.server!.url}`);
Open: http://localhost:3000/yay
Browser output:
yay
Brower output:
NOT_FOUND
await wrapper.modules; <- this is missing inside elysia
relates to elysiajs/elysia-static#23
node_modules
bun.lockb
yes
The text was updated successfully, but these errors were encountered:
Here's a test case:
// test.test.ts import { test, expect } from "bun:test"; import { Elysia } from "elysia"; test("Await nested async plugin", async () => { const yay = async () => { await Bun.sleep(2_000); return new Elysia({ name: "yay" }).get("/yay", "yay"); }; const wrapper = new Elysia({ name: "wrapper" }).use(yay()); // await wrapper.modules; <- this is missing inside elysia const app = new Elysia().use(wrapper); await app.modules; const response = await app.handle(new Request(`http://localhost/yay`)); expect(response.status).toBe(200); });
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What version of Elysia is running?
1.1.26
What platform is your computer?
WSL Ubuntu
What steps can reproduce the bug?
Open: http://localhost:3000/yay
What is the expected behavior?
Browser output:
What do you see instead?
Brower output:
Additional information
relates to elysiajs/elysia-static#23
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes
The text was updated successfully, but these errors were encountered: