denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.16k stars 5.4k forks source link

vite still can't resolve local module in deno workspace #26721

Closed umajho closed 1 day ago

umajho commented 3 weeks ago

Version: Deno 2.0.4

This is a continuation of #26138 that has been closed. It seems that the problem described in that issue still exists.

I have made two reproductions:

Here is the repository: https://github.com/umajho/deno-vite-monorepo-reproductions


There is also an issue reported to denoland/deno-vite-plugin that seems to describe the same problem:

ali-issa commented 2 weeks ago

Hello @bartlomieju and @marvinhagemeister,

I see that the issue has been assigned, which is great. Since our project depends on this feature, I wanted to ask if there’s an approximate timeline for when it might be addressed. If it’s likely to take some time, we’re considering alternative setups as an interim solution.

Thank you for any updates you can share!

bartlomieju commented 1 week ago

Hey @ali-issa, sorry I missed your comment. We'll try to fix it in the next week.

ali-issa commented 4 days ago

Hey @ali-issa, sorry I missed your comment. We'll try to fix it in the next week.

No worries, @marvinhagemeister! Thanks for the update, and I appreciate the effort!

bartlomieju commented 3 days ago

I managed to reproduce both issues. It appears to me the problem lies with @deno/vite-plugin, but I need to confirm me. Will get back to you soon.

bartlomieju commented 3 days ago

So turns out https://github.com/denoland/deno/pull/27020 will actually fix it. We'll try to include it in 2.1.2.