DF0070: Invalid Service
Invalid service "{package}": {reason}
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
/** ✗ 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-Devframe Services for the full shape.
Source
packages/devframe/src/node/host-services.ts:install()validates its input; the pre-setup construction validates imported factories and the definitions they return.
DF0069: Service Version Range Not Satisfied
The installed service "{package}@{installed}" does not satisfy the declared range "{required}"; installing it anyway.
DF0072: Snapshot Names Unknown RPC Method
rpc.snapshot names "{method}", but no RPC function is registered under that id, so there is nothing to bake into the static build.