Skip to content

DOCXKIT_PLUGIN_VERSION_MISMATCH: 外掛版本不相容 ​

資訊清單中的 docxKit 範圍不接受目前程式庫版本。

修復步驟 ​

  1. 比較訊息中的版本範圍和已安裝版本。
  2. 選擇相容的外掛與 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'

常見原因 ​

  • 發行版本組合不相容,或執行版本、版本範圍無效。

診斷欄位 ​

訊息範例 ​

text
Plugin "example" requires docx-kit range "^0.6.0" but 0.7.0 is installed

原始碼與相關指南 ​

Released under the MIT License.