节点构建无法一次性打包渲染: pdfkit 从其自身模块旁边的磁盘中读取其标准字体
作者: dbartholomae创建于 2026年9月22日更新于 2026年9月22日
Describe the bug
Since 4.9.0 (upstream pdfkit 0.20.1 instead of @React-pdf/pdfkit), a Node app that bundles React-pdf into one file, e.g. a Lambda handler built with esbuild, can't render anything.
内容来源: diegomura/react-pdf