Content Validation Error
Error:
Invalid module manifest formatorInvalid note frontmatter
The Problem
A file (either a module manifest or a markdown note) does not conform to the expected schema.
The Why
We use Zod to enforce structure. This prevents “silent failures” where a typo in a configuration key would otherwise lead to unpredictable behavior at runtime.
The Solution
- Read the Error: The terminal output will specify exactly which field is invalid and why (e.g.,
expected array, received string). - Consult the Schema:
- For modules: Check
packages/core/src/loader.jsfor theModuleManifestSchema. - For notes: Check
apps/portfolio/modules/core/content.ts(or equivalent content config) for yourVaultEntrySchema.
- For modules: Check
- Fix the File: Correct the type or structure of the field indicated in the error log.