DOCXKIT_PLUGIN_VERSION_MISMATCH: 插件版本不兼容
清单中的 docxKit 范围不接受当前库版本。
修复步骤
- 对比消息中的版本范围和已安装版本。
- 选择兼容的插件与 docx-kit 版本组合。
问题示例
ts
// With docx-kit 0.7.x installed:
const docxKit = '^0.6.0'修复示例
ts
// Use a plugin release tested with the installed docx-kit version.
const docxKit = '^0.7.0'常见原因
- 发布版本组合不兼容,或运行版本、版本范围无效。
诊断字段
code:PLUGIN_VERSION_MISMATCHdiagnosticCode:DOCXKIT_PLUGIN_VERSION_MISMATCHname:DocxKitErrordocs: https://docx-kit.ntnyq.dev/errors/docxkit_plugin_version_mismatch/
消息示例
text
Plugin "example" requires docx-kit range "^0.6.0" but 0.7.0 is installed