Errors and Troubleshooting
This page lists common errors from the current implementation.
File declaration errors
Missing declaration
Error:
File must declare exactly one role: @page, @layout Name, @component Name(props), or @document
Fix: add one valid file declaration.
Multiple declarations
Error:
Only one file declaration is allowed
Fix: keep only one role per .csc file.
Page declaration placement
Error:
Page files must begin with @page. Only whitespace and blank lines may appear before it
Fix: move @page to the top of the file.
Layout errors
Layout not found
Error:
Layout not found: Main
Fix: create:
src/layouts/Main.csc
Unknown layout prop
Error:
Unknown layout prop "..." for layout "...".
Fix: declare the prop in the layout or remove it from @use.
Component errors
Component not imported
Error:
Component "Hero" used but not imported in this file.
Fix:
@import Hero
Component not found
Fix: check file path inside src/components.
Data errors
Invalid JSON
Fix the JSON syntax in the referenced data file.
Missing load source
Fix the @load path or create the missing data file/folder.
Pagination errors
Source not found
Error:
@paginate source "..." was not found in @load aliases
Fix: load the array first using @load.
Source is not an array
Fix: make the loaded data an array or load a folder collection.
Sitemap errors
Missing site.url
Error:
Sitemap requires "site.url" in curvea.config.json
Fix: set site.url.
Document errors
A custom document must include:
<html><head><body>