Open technodromeltd opened 6 months ago
+1 for this issue both of these have the same type error as @technodromeltd
export const fetch = edenFetch<App>(
`${env.API_URL}:${env.API_PORT}`
);
export const app = edenTreaty<App>(
`${env.API_URL}:${env.API_PORT}`
);
Facing same issue on "eden 0.8.1", and "elysia 0.8.16".
same
Same here, went this route: https://elysiajs.com/patterns/unit-test.html#unit-test
used the friendly robots to confer "automated" rather than fancy eden type safety.
Here is an example:
You can run the project with bun install && bun start
.
Ther error being: Types have separate declarations of a private property 'dependencies'.
Here is an example:
You can run the project with
bun install && bun start
.Ther error being:
Types have separate declarations of a private property 'dependencies'.
I checked your repo. I think bun has some problems with caching.
bun.lockb
s in client
and server
directorybun i
Now it doesn't give error. (Tested on 5491c93bdc91d8b566e89f34c37f9ab377b71945)
@plastic041 thanks that worked perfectly! @technodromeltd I wonder if you try this too it will fix the issue for you?
Following EdenTreaty sample from docs:
I get type error:
I have
Any idea what else I can test?