quartz
quartz copied to clipboard
`AliasRedirects` fails for the aliases that can't be a file name
Describe the bug
If you have an alias that cannot represent a file name, emit fails
To Reproduce
- Create a note
Note.md
---
aliases:
- Proper Alias
- "Alias with invalid file system characters <>?|:"
- "Very long name, on Windows the limit is 260 characters 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
---
My note will break the `AliasRedirects` emit
- Try to build
Quartz
- Get the error
Failed to emit from plugin `AliasRedirects`: ENOENT: no such file or directory
Expected behavior
The site builds without error
Screenshots and Source
N/A
Desktop (please complete the following information):
- Quartz Version: v4.1.4
-
node
Version: v20.11.0 -
npm
version: v10.2.4 - OS: Windows 11
- Browser: chrome
Additional context
N/A