Deno + Vite + Local Packages Issue
Hello! I'm new to deno and I'm giving a try to deno 2. I have a Vite project that relies on local packages.
In node/bun, you would use workspace protocols in
package.json
(https://bun.sh/docs/install/workspaces):
Following Deno's documentation, I attempted to use relative imports in deno.json
:
However, this results in the following error:
I've set the workspace
field in the root deno.json
file like this:
Thanks for any help!3 Replies
Hi @Juan
I am having a similar issue, did you manage to solve your problem?
Just ran into this myself, anyone figure out a solution?
Just found the solution from this issue: https://github.com/denoland/deno/issues/26138
Install the deno vite plugin: https://github.com/denoland/deno/issues/26138#issuecomment-2406712651
GitHub
vite can't resolve local module in deno workspace from a node proje...
Version: Deno 2.0.0 Reproduction Repo linked below : https://github.com/cam-mcevenue/deno-monorepo-repro/tree/main I am attempting to build a sveltekit project within a deno monorepo. I have two di...