Skip to content

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 package name,
  • a definition is missing its version or its RPC scope namespace,
  • an imported service package's default export is not a factory function,
  • the factory didn't return a definition with a setup function.

Example

ts
// ✗ A pre-built instance as the default export — not a factory.
export default createShikiService()

// ✓ The factory itself.
export default createShikiService

Fix

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

Released under the MIT License.