walinejs / waline

💬 A Simple, Safe Comment System
https://waline.js.org/en/
GNU General Public License v2.0
2.27k stars 397 forks source link

[Bug]: 最新版waline server 端 vercel 部署出错 #1827

Closed appotry closed 1 year ago

appotry commented 1 year ago

问题描述 | Describe the bug

最新版服务端部署出错, log 如下

v1.26.3-deta-alpha

<html>
<body>
<!--StartFragment-->

Running build in Cleveland, USA (East) – cle1
--
21:46:04.854 | Cloning github.com/appotry/waline2-api (Branch: main, Commit: d2d724f)
21:46:05.412 | Cloning completed: 557.532ms
21:46:07.456 | Running "vercel build"
21:46:08.023 | Vercel CLI 28.16.6
21:46:08.254 | WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
21:46:08.801 | Installing dependencies...
21:46:09.177 | yarn install v1.22.17
21:46:09.218 | info No lockfile found.
21:46:09.228 | [1/4] Resolving packages...
21:46:11.755 | warning @waline/vercel > leancloud-storage > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
21:46:11.756 | warning @waline/vercel > leancloud-storage > leancloud-realtime > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
21:46:11.841 | warning @waline/vercel > @cloudbase/node-sdk > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
21:46:11.847 | warning @waline/vercel > @cloudbase/node-sdk > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
21:46:11.854 | warning @waline/vercel > @cloudbase/node-sdk > request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
21:46:13.092 | warning @waline/vercel > @cloudbase/node-sdk > request > har-validator@5.1.5: this library is no longer supported
21:46:13.706 | warning @waline/vercel > leancloud-storage > @leancloud/platform-adapters-browser > @leancloud/adapters-superagent > superagent@5.3.1: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
21:46:13.761 | warning @waline/vercel > @cloudbase/node-sdk > @cloudbase/signature-nodejs > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
21:46:14.057 | warning @waline/vercel > leancloud-storage > @leancloud/platform-adapters-browser > @leancloud/adapters-superagent > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
21:46:15.264 | warning @waline/vercel > akismet > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
21:46:15.277 | [2/4] Fetching packages...
21:46:26.404 | [3/4] Linking dependencies...
21:46:26.407 | warning "@waline/vercel > @cloudbase/node-sdk > ts-node@8.10.2" has unmet peer dependency "typescript@>=2.7".
21:46:32.334 | [4/4] Building fresh packages...
21:46:32.908 | success Saved lockfile.
21:46:32.914 | Done in 23.74s.
21:46:34.380 | Build Completed in /vercel/output [26s]
21:46:58.952 | Generated build outputs:
21:46:58.953 | - Static files: 0
21:46:58.954 | - Prerenders: 0
21:46:58.954 | - Serverless Functions: 1
21:46:58.954 | - Edge Functions: 0
21:46:58.954 | Serverless regions: Hong Kong
21:46:58.954 | Deployed outputs in 24s
21:46:59.342 | Build completed. Populating build cache...
21:47:05.638 | Uploading build cache [23.23 MB]...
21:47:07.097 | Build cache uploaded: 1.459s

<!--EndFragment-->
</body>
</html>

问题网站 | Website URL

https://waline2-api.vercel.app/

服务部署在哪里? | Where your waline deploy?

Vercel (Default)

数据存储在哪里?| Where your comment data store?

LeanCloud(https://leancloud.app)

lizheming commented 1 year ago

不要装这个版本,这个版本是 deta 特供版。最新版是 1.26.3,npm 上我已经重新修改了 latest 的指向了,你再试一下。

appotry commented 1 year ago

@lizheming 感谢解决,重新部署后可用了