pdfh5 icon indicating copy to clipboard operation
pdfh5 copied to clipboard

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

Open MuLoo opened this issue 1 year ago • 5 comments

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

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

MuLoo avatar Jul 11 '23 03:07 MuLoo

+1 node: 16.18.0

Endermanpoi avatar Jul 11 '23 08:07 Endermanpoi

+1 node:18.16

houqiangxie avatar Jul 12 '23 01:07 houqiangxie

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

1wanghaolong avatar Jul 12 '23 07:07 1wanghaolong