首页 前端知识 These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/domm

These dependencies were not found:* canvas in ./node_modules/pdfh5/js/pdf.js* dommatrix/dist/domm

2024-01-30 10:01:14 前端知识 前端哥 667 917 我要收藏

错误代码:

These dependencies were not found:

* canvas in ./node_modules/pdfh5/js/pdf.js
* dommatrix/dist/dommatrix.js in ./node_modules/pdfh5/js/pdf.js
* web-streams-polyfill/dist/ponyfill.js in ./node_modules/pdfh5/js/pdf.worker.js

To install them, you can run: npm install --save canvas dommatrix/dist/dommatrix.js web-streams-polyfill/dist/ponyfill.js

解决方法:

npm install --save canvas dommatrix web-streams-polyfill

转载请注明出处或者链接地址:https://www.qianduange.cn//article/791.html
标签
pdf
评论
会员中心 联系我 留言建议 回顶部
复制成功!