Tencent / wujie

极致的微前端框架
https://wujie-micro.github.io/doc/
Other
4.07k stars 583 forks source link

create-wujie error #624

Open Zhliyun opened 1 year ago

Zhliyun commented 1 year ago
image

如图所示,使用 create-wujie 创建项目失败

描述bug 如图所示,使用 create-wujie 创建项目失败

如何复现 nodejs v16.20.1

  1. npx create-wujie@latest
  2. 创建项目后报错,如上图

错误截图

image

最小复现仓库或者地址 重要!!!,请尽量给出复现仓库,这样能极大加快bug解决速度

Spectature commented 1 year ago

image 以上列出版本的node都尝试了还是报错

cdll commented 1 year ago

same issue here

ErKeLost commented 1 year ago

已修复 npx create-wujie@latest

Spectature commented 1 year ago

已修复 npx create-wujie@latest

仍然报错 node 16.20.1和17.9.1 image image

ErKeLost commented 1 year ago

选的什么框架 什么路由 看起来是 ejs 编译报错了

Spectature commented 1 year ago

image 经排查子项目选择vite的时候会报错,选则vue3的时候可以正常创建

ErKeLost commented 1 year ago

image 经排查子项目选择vite的时候会报错,选则vue3的时候可以正常创建

image node 16.18.0 我测试是可以用的 你可以先试一下 其他版本我在看一下

ahz549467483 commented 1 year ago

尝试16.18.0, 使用vite同样的问题

ErKeLost commented 1 year ago

尝试16.18.0, 使用vite同样的问题

我找个 windows 试一下哈 可以先跑 wujie 仓库里的 demo

ErKeLost commented 1 year ago

prettier 版本问题导致 babel 编译的时候 解析不了类型文件 安装最新版就可以了