Help setting up Eden Treaty in Turborepo
Unanswered
Eastern Meadowlark posted this in #help-forum
Eastern MeadowlarkOP
I've started a new turborepo repository and added a new next.js workspace and a backend workspace that would run elysia, now to create a proper eden treaty, I've created a new workspace in
I'm unable to import the export that I've made for the Elysia types from
I've properly setup the tsconfig.json as per my understanding and the package.json imports correctly.
The entire code here : https://github.com/Pranavtechie/modelith-monorepo.git
packages/libs (libs being the workspace name). I'm unable to import the export that I've made for the Elysia types from
apps/backend workspace to packages/libs workspace. I'm not sure what's causing the error. I've properly setup the tsconfig.json as per my understanding and the package.json imports correctly.
The entire code here : https://github.com/Pranavtechie/modelith-monorepo.git
1 Reply
Eastern MeadowlarkOP
I've solved the problem, it's the most stupid error of all time. The libs package is not a module, it was in commonjs, I just had to add "type: module" line. 🫠