gjTool / pdfh5

web/h5/移动端PDF预览插件

Home Page:https://www.gjtool.cn/pdfh5/pdf.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

更新到1.4.5之后,编译报错 resolve 'canvas' in 'xxx/node_modules/pdfh5/js

MuLoo opened this issue · comments

commented

node: 14.18.2
作者在19小时之前更新了最新的1.4.5版本,使用此版本编译时出现上述错误。

目前临时解决办法,锁定版本为1.4.2 。
(也许其他版本也可以)

+1
node: 16.18.0

+1 node:18.16

commented

需要更新和下载path2d-polyfill 和canvas 包 你在试试 刚解决的