Lexicon Issues
Missing Type Declarations
Section titled “Missing Type Declarations”Symptom: Missing type declarations in your IDE, or import errors.
Fix:
# Sync lexicon type definitionschant updatechant update syncs lexicon types into .chant/types/.
Unknown Resource Type
Section titled “Unknown Resource Type”Symptom: Unknown resource type 'X' error during build or lint.
Cause: The resource type isn’t in the installed lexicon. Either the lexicon is outdated or there’s a typo.
Fix:
- Check for typos in the resource class name
- Update the lexicon package:
npm update @intentius/chant-lexicon-<name> - Run
chant update
No IDE Autocomplete
Section titled “No IDE Autocomplete”Symptom: Your editor doesn’t provide autocomplete for resource properties.
Fix:
- Run
chant updatethenchant lint --fixto ensure types are generated - Verify
tsconfig.jsonis configured correctly (see TypeScript Configuration) - Restart your editor’s TypeScript language server