Skip to content

DOCXKIT_PLUGIN_DEPENDENCY_MISSING: Plugin dependency missing ​

A public code for plugin dependency failures. Built-in loaders currently do not automatically raise this code.

What to do ​

  1. If a custom integration raises this code, check its dependency validation.
  2. Install the dependency with a version required by the plugin.

Problem example ​

ts
import { createDocxKitError } from 'docx-kit'

// Explicit reporting by a custom dependency validator.
throw createDocxKitError('PLUGIN_DEPENDENCY_MISSING', {
  dependency: 'example-dependency',
})

Corrected example ​

ts
// Install a compatible dependency declared by the plugin manifest.
// Built-in loaders do not currently raise this code automatically.
const manifestDependencies = { 'example-dependency': '^1.0.0' }

Common causes ​

  • An integration explicitly reports a missing or incompatible dependency.

Diagnostic fields ​

Example message ​

text
Plugin dependency missing: example-dependency

Released under the MIT License.