[Bug]: Rspress is using readFile
on subdirectories if prefixed with digits and dot
#1682
Labels
🐞 bug
Something isn't working
Version
System: OS: macOS 14.7.1 CPU: (11) arm64 Apple M3 Pro Memory: 1.57 GB / 36.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 131.0.6778.140 Safari: 17.6 npmPackages: rspress: ^1.38.0 => 1.38.0
Details
When subdirectories are prefixed with digits and dots like
docs/010.sub-directory/
ordocs/010.sub-directory/008.second-sub-directory/
Rspress cashes because it tries to read it like a file.Couldn't find a workaround and can't rename all directories due to conventions.
Repo to reproduce -> https://github.com/XavierLeTohic/rspress-read-directory-error-example
Reproduce link
https://github.com/XavierLeTohic/rspress-read-directory-error-example
Reproduce Steps
Run
nvm use
or use Node 22.xRun
npm i
Run
npm run dev
The text was updated successfully, but these errors were encountered: