You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since pnpm upgrade from v8 to v9, dependencies files can have # in their name, and vite fails to compile them in some cases. It seems to occurs when a dependency is declared with the repo url (neither official npm package nor github project) and this dependency import another one also declared with its repo url.
Here is the same issue as #16597, but with a minimal repo to reproduce the pb.
git clone https://github.com/dcaillibaud/bug-vite-pnpm9.git
cd bug-vite-pnpm9
npx pnpm@9 install
vite build
You can test the build with ./test.sh 8 or ./test.sh 9, or just install dependencies with pnpm 8 (./install.sh 8) or pnpm 9 (./install.sh 9) then try vite build --debug or vite
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Since pnpm upgrade from v8 to v9, dependencies files can have # in their name, and vite fails to compile them in some cases. It seems to occurs when a dependency is declared with the repo url (neither official npm package nor github project) and this dependency import another one also declared with its repo url.
Here is the same issue as #16597, but with a minimal repo to reproduce the pb.
Reproduction
https://github.com/dcaillibaud/bug-vite-pnpm9
Steps to reproduce
git clone https://github.com/dcaillibaud/bug-vite-pnpm9.git cd bug-vite-pnpm9 npx pnpm@9 install vite build
You can test the build with
./test.sh 8
or./test.sh 9
, or just install dependencies with pnpm 8 (./install.sh 8
) or pnpm 9 (./install.sh 9
) then tryvite build --debug
orvite
System Info
System: OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm) CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz Memory: 14.33 GB / 31.09 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 20.5.1 - /usr/bin/node npm: 10.7.0 - /usr/bin/npm pnpm: 8.15.8 - /usr/bin/pnpm Browsers: Chrome: 127.0.6533.88 Chromium: 126.0.6478.182 npmPackages: vite: ^5.3.5 => 5.3.5
It's ok with pnpm 8 (try
./test.sh 8
) or in branch sampleOkValidations
The text was updated successfully, but these errors were encountered: