quartz icon indicating copy to clipboard operation
quartz copied to clipboard

`AliasRedirects` fails for the aliases that can't be a file name

Open mnaoumov opened this issue 5 months ago • 2 comments

Describe the bug

If you have an alias that cannot represent a file name, emit fails

To Reproduce

  1. 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
  1. Try to build Quartz
  2. 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

mnaoumov avatar Jan 18 '24 17:01 mnaoumov