Skip to content

DOCXKIT_MANIFEST_MISSING: 外掛資訊清單缺失 ​

外部載入時未能找到所需的 docx-kit.plugin.json。

修復步驟 ​

  1. 在套件根目錄包含資訊清單檔案。
  2. 匯入可執行程式碼前,確認資訊清單路徑或 URL 可存取。

問題範例 ​

ts
// Package contents: dist/index.js only

修復範例 ​

ts
// Package contents:
// docx-kit.plugin.json
// dist/index.js
import { validateManifest } from 'docx-kit'

const manifest = {
  name: 'example-plugin', version: '1.0.0', docxKit: '^0.7.0',
  main: './dist/index.js', plugin: { name: 'example' },
}

validateManifest(manifest)

常見原因 ​

  • 發佈套件遺漏資訊清單,或請求的路徑回傳錯誤。

診斷欄位 ​

訊息範例 ​

text
Plugin manifest not found for package "example-plugin"

原始碼與相關指南 ​

Released under the MIT License.