zhangyuang / ssr

A most advanced ssr framework support React17/React18/Vue2/Vue3 on Earth that implemented serverless-side render specification.
http://doc.ssr-fc.com/
MIT License
2.61k stars 284 forks source link

更新了最新版本以后发布到阿里云不成功 #338

Closed stellacoursera closed 1 week ago

stellacoursera commented 2 months ago

提问前请确认以下几点信息,否则你的问题将不会被解答

详细描述你的问题

更新到最新版本,发布阿里云报错。直接使用midway-react-ssr 的Demo未修改直接发布阿里云也报错,错误如下: TypeError: The "id" argument must be of type string. Received undefined at Module.require (node:internal/modules/cjs/loader:1304:3) at require (node:internal/modules/helpers:179:18) at compileTypeScript (E:\Project\ssr-demo\node_modules\@midwayjs\command-core\dist\utils\compileTypeScript.js:13:16) at PackagePlugin.compile (E:\Project\ssr-demo\node_modules\@midwayjs\fcli-plugin-package\dist\index.js:455:88) at CommandCore.execLifecycle (E:\Project\ssr-demo\node_modules\@midwayjs\command-core\dist\core.js:188:21) at CommandCore.invoke (E:\Project\ssr-demo\node_modules\@midwayjs\command-core\dist\core.js:150:9) at AliyunFCPlugin.deployUseServerlessDev (E:\Project\ssr-demo\node_modules\@midwayjs\fcli-plugin-fc\dist\index.js:181:9) at CommandCore.execLifecycle (E:\Project\ssr-demo\node_modules\@midwayjs\command-core\dist\core.js:188:21) at CommandCore.invoke (E:\Project\ssr-demo\node_modules\@midwayjs\command-core\dist\core.js:150:9) at CLI.start (E:\Project\ssr-demo\node_modules\@midwayjs\command-core\dist\cli.js:163:9) { code: 'ERR_INVALID_ARG_TYPE'

期望的结果

正确发布

当前使用的版本

最新版本安装

复现仓库地址

你本人对问题可能的原因判断(如果你能大概判断的话)

zhangyuang commented 2 months ago

无法复现,试了一下没有问题。如果是安装了全局pnpm,可以尝试默认demo的pnpm-lock文件重新ssr deploy