Closed
Description
What version of Elysia is running?
1.3.1
What platform is your computer?
Darwin 24.0.0 arm64 arm
What steps can reproduce the bug?
- Install
elysia@1.3
- Install
@elysiajs/node@0.0.3
- Run a basic server:
import { Elysia } from "elysia";
import { node } from "@elysiajs/node";
new Elysia({ adapter: node() })
.get("/", () => "Hello Elysia")
.listen(3000, ({ hostname, port }) => {
console.log(`🦊 Elysia is running at ${hostname}:${port}`);
});
What is the expected behavior?
Server is successfully started, console output is:
🦊 Elysia is running at :::3000
What do you see instead?
import { getSchemaValidator, isNotEmpty as isNotEmpty2, randomId } from "elysia/utils";
^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'elysia/utils' does not provide an export named 'getSchemaValidator'
Additional information
Related issue in node adapter repo: elysiajs/node#40
The original error is easy to fix since getSchemaValidator
was moved from "elysia/utils" to "elysia/schema", but once fixed, another error come up which is not trivial to fix:
import { mergeResponseWithSetHeaders } from "elysia/adapter/web-standard/handler";
^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'elysia/adapter/web-standard/handler' does not provide an export named 'mergeResponseWithSetHeaders'
Looks like this file was removed in this commit: 1d2c662 and it's not obvious from function names what is the replacement for this function.
Have you try removing the node_modules
and bun.lockb
and try again yet?
yes