原则上这里只解答与本框架有关的问题。关于其他问题例如 Node.js 怎么连 Mysql 怎么获取 cookie 这种基础问题你应该去 Google 找答案而不是在这里。
详细描述你的问题
更新到最新版本,发布阿里云报错。直接使用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'
提问前请确认以下几点信息,否则你的问题将不会被解答
详细描述你的问题
更新到最新版本,发布阿里云报错。直接使用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'
期望的结果
正确发布
当前使用的版本
最新版本安装
复现仓库地址
你本人对问题可能的原因判断(如果你能大概判断的话)