Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import jsr: packages in workspaces #47

Closed
lishaduck opened this issue Feb 15, 2025 · 2 comments
Closed

Unable to import jsr: packages in workspaces #47

lishaduck opened this issue Feb 15, 2025 · 2 comments

Comments

@lishaduck
Copy link

When importing jsr:@std/fs (or any other JSR package) into a file that gets consumed by Vitest, they aren't found.

I'll try to make a minimal repro, but for now, lishaduck/effect-utils#6 is an example.

@lishaduck
Copy link
Author

lishaduck commented Feb 15, 2025

Ok, I realized I hadn't tried direct jsr: specifiers instead of using import maps. That doesn't work either, surprisingly. Huh.

Oooooh. Could it be Vitest Workspaces that's the issue; like, Deno isn't resolving the workspace members when they're imported from the root or something?

@lishaduck
Copy link
Author

I was using Vitest 2 instead of 3, and forgot how the configs cascade. 🤦
Sorry for all the noise.

@lishaduck lishaduck closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant