Skip to content

HAMUR_E1260: server/policies/entities.ts does not default-export defineEntities

server/policies/entities.ts does not default-export defineEntities. Error HAMUR_E1260 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1260 <shown> must default-export defineEntities({ ... })
text
HAMUR_E1260 the sources of defineEntities are written out, not spread

Cause

server/policies/entities.ts does not export defineEntities({ … }) with an object literal as default, or its sources are not an object literal with written-out keys. The build reads them.

Fix

Write export default defineEntities({ principal, sources: { … } }) with one key per entity type.