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
- If a custom integration raises this code, check its dependency validation.
- 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
code:PLUGIN_DEPENDENCY_MISSINGdiagnosticCode:DOCXKIT_PLUGIN_DEPENDENCY_MISSINGname:DocxKitErrordocs: https://docx-kit.ntnyq.dev/errors/docxkit_plugin_dependency_missing/
Example message
text
Plugin dependency missing: example-dependency