Compile Errors
required attribute "X" is missing
A required field for the resource type is not set.
ubx docs aws_rds_instance --list to see required fields.
local.X is not declared in this file
Referencing a local block that doesn’t exist.
local "missing" { value = ... } or fix the typo.
~data.X.Y references an undeclared data block
data block or fix the reference.
policy "X" violated
A policy block’s condition evaluated to false for a unit block.
Fix: Either fix the resource attribute to satisfy the policy, or change severity to "warn" if it’s not critical.
Version Errors
ubx version constraint not satisfied
go install github.com/ubiquex/ubx@latest
AI Errors
AI features require an API key
export UBX_AI_API_KEY=sk-ant-...
State Errors
.ubx directory not found
ubx apply first to create the .ubx/ directory and initial state.
TypeScript Compile Errors
npm error 404 Not Found @ubiquex/...
A component block references a package that doesn’t exist in the npm registry.
Fix: Check the source attribute is correct. Use ubx validate --compile to catch this earlier.
