-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Fail to load packages installed from Git repo with pnpm v9 #17459
Comments
Yeah it's likely that the |
Same issue there. I don't thinks that is very «edgecase» stuff. In small-to-medium projects it is much easier to use git, then private packages, which are coming with overhead from publish flow of public packages. |
This comment was marked as spam.
This comment was marked as spam.
I don't think this is a minor bug unless there is a workaround for using packages hosted on private repos. |
I also don't think it's a minor bug, it forbids to use vite with pnpm9 on all of our projects (public and open source, with dependencies on our own gitlab). |
also breaks in pnpm 9, we have to use pnpm v8 because of this |
I believe this happens specifically when you want to install a specific branch, sub-directory, etc. E.g. I ran
This makes it difficult for us to manually test PRs we receive in our projects. |
I filed an issue in the pnpm repo asking if they might be able to change this on their side: pnpm/pnpm#8437 |
Setting resolve.preserveSymlinks to true seems to fix this for me - I think that makes sense, as the |
Pnpm plans to escape |
Describe the bug
Since upgrading to pnpm v9, Vite has failed to load packages installed from Git repo.
Error like this
Repos on Github or Gitlab exhibit no issues, yet those on self-hosted services or other Git providers encounter problems.
It seems there is
#
in the file path that may be causing the issue. logic hereReproduction
https://github.com/kong-dev/vite-issue
Steps to reproduce
The repository above is a minimal reproduction including 2 dependencies:
Steps:
pnpm install
pnpm run dev
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: