DF0070: Invalid Service
Message
Invalid service "
{package}":{reason}
Cause
A wire service failed structural validation at install time. The reason names the specific gap:
- the install input has no
packagename, - a definition is missing its
versionor its RPCscopenamespace, - an imported service package's default export is not a factory function,
- the factory didn't return a definition with a
setupfunction.
Example
ts
// ✗ A pre-built instance as the default export — not a factory.
export default createShikiService()
// ✓ The factory itself.
export default createShikiServiceFix
A service package's default export must be its create<X>Service factory, returning a DevframeServiceDefinition — an object with package, version, scope, and a setup function. See Cross-Plugin Services for the full shape.
Source
packages/devframe/src/node/host-services.ts—install()validates its input; the barrier flush validates imported factories and the definitions they return.