cloudbase-framework icon indicating copy to clipboard operation
cloudbase-framework copied to clipboard

有关nestjs cloudbase-template创建失败问题

Open JYbill opened this issue 3 years ago • 0 comments

Bug描述

  1. 使用官方收录的nestjs模板,构建失败
  2. 在window环境下使用tcb cli创建nestjs模板创建成功后,run dev/start失败

bug复现

  1. 创建cloudbase使用官方模板仓库的nest创建,待创建完成后创建失败。
  2. 使用tcb cli创建项目使用官方的init初始化后npm i => npm dev 报错

使用tcb cli创建项目错误展示

  • 第一个:npm i 后 npm run
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
  • 解决第一个后,第二个
node_modules/@types/superagent/index.d.ts:23:10 - error TS2305: Module '"buffer"' has no exported member 'Blob'.

23 import { Blob } from "buffer";
            ~~~~
[20:47:29] Found 1 error. Watching for file changes.

上面的所有错误我都解决,基本测试没问题

JYbill avatar Feb 16 '22 06:02 JYbill