Amin NAIRI
Amin NAIRI4w ago

Importing from Deno Workspace to NPM workspace

I'm trying to import some shared Zod schemas from the backend (Deno project) to the frontend (React project created using deno run -A npm:create-vite) but for some reasons, the LSP finds the file correctly, but it is typed as any rather than the type of the Zod schema. I tried creating a shared folder and importing the schemas from the shared folder to the backend and it works perfectly, but importing it from the frontend always gives me any. Any insights on this? I tried both on helix and vscode, same outcome.
1 Reply
Amin NAIRI
Amin NAIRIOP4w ago
Nevermind, it was definitely a quirk from Helix

Did you find this page helpful?