Closed IOnlyNeedParenthesis closed 2 months ago
I'm not sure if it's necessarily an Elysia/Eden issue. The workaround is just to simply update your frontend's tsconfig.json to reference your backend tsconfig.json
"references": [
{
"path": "../backend" // Add reference to the backend tsconfig
}
]
"compilerOptions": {
"composite": true, // Enable this line
}
Here's my working template if anyone needs to refer https://github.com/Ripwords/elysia-lucia-template
Hey @Ripwords, your solution solves the issue. Thanks a lot.
Hello, I have been developing on a monorepo with elysia. When using the eden treaty, route parameters are type hinted as any instead of the expected types. We have narrowed it down to being a path aliasing issue.
See this repository for a reproduction https://github.com/IOnlyNeedParenthesis/elysia-eden-treaty-repro. This seems to be the same issue as in #99 and possibly related to #42.