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 Error: [vite:css] [postcss] ENOENT: no such file or directory
# install pnpm package manager
npm i -g pnpm
# clone a repo with https dependencies
git clone https://git.sesamath.net/sesamath/sesaparcours.git
cd sesaparcours
# install dependencies with pnpm
pnpm i
# build with vite (vite/5.2.6 linux-x64 node-v20.5.1)
vite build
=>
vite v5.2.6 building for production...
✓ 637 modules transformed.
x Build failed in 4.41s
error during build:
Error: [vite:css] [postcss] ENOENT: no such file or directory, open '/home/daniel/tmp/sesaparcours/node_modules/.pnpm/@sesatheque-plugins+arbre@git+https+++git.sesamath.net+sesamath+sesatheque-plugin-arbre.git'
file: /home/daniel/tmp/sesaparcours/node_modules/.pnpm/@sesatheque-plugins+arbre@git+https+++git.sesamath.net+sesamath+sesatheque-plugin-arbre.git#d_wqzhegxz6itmlvnxp64vllaxoy/node_modules/@sesatheque-plugins/arbre/public/arbre.css:undefined:NaN
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.
Hello @dcaillibaud. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
Since pnpm upgrade from v8 to v9, dependencies files can have
#
in their name, and vite fails to compile themError: [vite:css] [postcss] ENOENT: no such file or directory
Reproduction
https://git.sesamath.net/sesamath/sesaparcours.git
Steps to reproduce
=>
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: 25.10 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: 9.0.6 - /usr/bin/pnpm Browsers: Chrome: 124.0.6367.118 Chromium: 124.0.6367.118 npmPackages: vite: ^5.2.6 => 5.2.6
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: