This repository was archived by the owner on Jul 26, 2023. It is now read-only.
Replies: 1 comment 3 replies
-
Netlify 是之前的一个评论给的解决方案,我自己没尝试过去 Netlify 上部署,所以能用 Vercel 的话还是用 Vercel? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
从vercel/heroku上部署是正常的,但在netlify上部署同样的项目一直失败,不知道什么原因,很好奇
下面是报错
9:37:34 PM: Failed to compile.
9:37:34 PM:
9:37:34 PM: ModuleNotFoundError: Module not found: Error: Can't resolve 'canvas' in '/opt/build/repo/node_modules/pdfjs-dist/build'
9:37:34 PM: > Build error occurred
9:37:34 PM: Error: > Build failed because of webpack errors
9:37:34 PM: at /opt/build/repo/node_modules/next/dist/build/index.js:397:19
9:37:34 PM: at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/telemetry/trace/trace.js:60:20)
9:37:34 PM: at async Object.build [as default] [(/opt/build/repo/node_modules/next/dist/build/index.js:77:25)
Beta Was this translation helpful? Give feedback.
All reactions