Ultimate

X_SLICE_POLICY_INCOMPLETE

Means

a generator needs an export the slice policy.ts does not declare

Typical cause

x g action or x g mutator was pointed with --feature at a slice whose hand-written policy.ts does not export the names the generated file imports (can<Feature>Write, and for an action <feature>Tag). Refused before anything is written, because the generated file would not compile. A barrel or a nested destructuring the scan cannot read is never refused

Fix

add the export lines the thrown fix: spells out for the slice — export const can<Feature>Write = can('<feature>:write'); and, for an action, export const <feature>Tag = tag('<feature>'); — to the slice's policy.ts, then run the generator again

Listed under CLI and verify

This page as markdown