0

试图使用 https://github.com/evilc0des/docxtemplater-image-module-free中的 javascript docx-templater-image 模块,当仅使用 READ.ME 中列出的 Demo 浏览器代码时,未处理的 Promise Rejection: TemplateError:浏览器控制台中出现多个错误。

{"error":[{"message":"Attempted to assign to readonly property.","properties":{"file":"word/document.xml"},"line":323,"column":10,"sourceURL":"http://127.0.0.1:5500/build/imagemodule.js","stack":"addExtensionRels@http://127.0.0.1:5500/build/imagemodule.js:323:10\naddImageRels@http://127.0.0.1:5500/build/imagemodule.js:350:25\n@http://127.0.0.1:5500/build/imagemodule.js:164:38\npromiseReactionJob@[native code]"}]}

仍然是 javascript 的新手,因此对其原因以及如何解决它的任何帮助都会很棒!

4

0 回答 0