Amin NAIRIA
Denoβ€’14mo agoβ€’
1 reply
Amin NAIRI

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.
Was this page helpful?