notion-docsify icon indicating copy to clipboard operation
notion-docsify copied to clipboard

流水线报错是怎么回事呢?

Open junyangfan opened this issue 3 years ago • 2 comments

ERROR in ../node_modules/pdfjs-dist/legacy/build/pdf.js14308:21-38 Module not found: Error: Can't resolve 'canvas' in '/home/runner/work/Notion/Notion/node_modules/pdfjs-dist/legacy/build' resolve 'canvas' in '/home/runner/work/Notion/Notion/node_modules/pdfjs-dist/legacy/build' Parsed request is a module using description file: /home/runner/work/Notion/Notion/node_modules/pdfjs-dist/package.json (relative path: ./legacy/build) resolve as module /home/runner/work/Notion/Notion/node_modules/pdfjs-dist/legacy/build/node_modules doesn't exist or is not a directory /home/runner/work/Notion/Notion/node_modules/pdfjs-dist/legacy/node_modules doesn't exist or is not a directory /home/runner/work/Notion/Notion/node_modules/pdfjs-dist/node_modules doesn't exist or is not a directory /home/runner/work/Notion/Notion/node_modules/node_modules doesn't exist or is not a directory looking for modules in /home/runner/work/Notion/Notion/node_modules single file module using description file: /home/runner/work/Notion/Notion/package.json (relative path: ./node_modules/canvas) no extension /home/runner/work/Notion/Notion/node_modules/canvas doesn't exist .js /home/runner/work/Notion/Notion/node_modules/canvas.js doesn't exist .json /home/runner/work/Notion/Notion/node_modules/canvas.json doesn't exist .wasm /home/runner/work/Notion/Notion/node_modules/canvas.wasm doesn't exist /home/runner/work/Notion/Notion/node_modules/canvas doesn't exist /home/runner/work/Notion/node_modules doesn't exist or is not a directory /home/runner/work/node_modules doesn't exist or is not a directory /home/runner/node_modules doesn't exist or is not a directory /home/node_modules doesn't exist or is not a directory /node_modules doesn't exist or is not a directory @ ../node_modules/react-pdf/dist/esm/entry.js 1:0-53 7:0-35 8:0-42 @ ../node_modules/react-notion-x/build/esm/third-party.js 24:0-50 28:0-35 28:66-79 37:32-40 37:194-198 @ ../node_modules/react-notion-x/build/esm/index.js 10:0-30 10:0-30 @ ./render/renderToHtmlString.js 5:0-91 108:65-79 115:16-24 116:12-16 117:18-28 118:21-34 @ ./index.mjs 2:0-65 51:44-60 webpack 5.71.0 compiled with 1 error and 2 warnings in 3721 ms Error: Process completed with exit code 1.

junyangfan avatar Jun 07 '22 06:06 junyangfan

感谢反馈,这个错误是由于不是在浏览器环境执行造成,可以忽略

qumuchegi avatar Jul 13 '22 05:07 qumuchegi

最终生成的artifact里面没有子页面,会不会是这个页面有太多子页面(50多个)导致的? image

BaldStrong avatar Oct 08 '22 08:10 BaldStrong