Open technodromeltd opened 10 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?
@plastic041 Hello, for some reason I have the same issue again, I have to add a // @ts-expect-error
again on the treaty<Server>
else I have this TS error Types have separate declarations of a private property 'dependencies'.
.
I'm basically on latest version.
Same issue as the creator of this issue.
@chneau I get the same error and I can't find the right way to handle this either 😢
How it is possible that code example is not working! Just copy-pasted from documentation and got the same error! The topic was created 13th of January, now is August 16th - and still no solution. Dead framework, Stay Away!
Also broken for me :(
Following EdenTreaty sample from docs:
I get type error:
I have
Any idea what else I can test?