lowcode-engine icon indicating copy to clipboard operation
lowcode-engine copied to clipboard

@alilc/lowcode-rax-renderer 模块编译错误

Open yodagg opened this issue 3 years ago • 6 comments

Describe the bug (required) / 详细描述 bug(必填)

克隆项目到本地,发现build某些模块的时候会报错。 @alilc/lowcode-rax-renderer模块编译错误。

报错指令: npx lerna run build --scope @alilc/lowcode-rax-renderer --stream

报错截图: image

项目版本:1.0.14 Nodejs版本:v14.19.1 系统版本:Linux version 4.19.91-20210923120534.78bc30e.al7.x86_64 (root@2000eadb29eb) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)) #1 SMP Thu Sep 23 04:08:04 UTC 2021阿里云云端开发平台

To Reproduce (required) / 如何复现 bug?(必填,非常重要)

Steps to reproduce the behavior: / 详细复现步骤:

  1. 使用云端开发平台克隆项目
  2. npm i && npm run setup
  3. npx lerna run build --scope @alilc/lowcode-rax-renderer --stream

yodagg avatar Oct 17 '22 08:10 yodagg

+1

cleverpp avatar Oct 21 '22 09:10 cleverpp

我使用 linux、mac、windows 试过,都会报这个 ts 错误,不清楚是哪里的问题。 但是我看 issues 好像没有人出现这个问题,大家都能成功 build 吗?

yodagg avatar Oct 21 '22 09:10 yodagg

@yodagg 我跟踪了报错的源头,从react-router的issue【https://github.com/remix-run/react-router/issues/9241】中找到了原因。 你也检查下你全局的typescript版本,升级到最新后解决。

cleverpp avatar Oct 21 '22 10:10 cleverpp

@cleverpp 感谢,不过我没在全局安装过 TS,我尝试全局安装最新版 TS 后问题依然存在,我看到 package-lock 里有不少 TS 还是 3.x 的版本,晚些我尝试改一下 node_modules 内依赖的 TS 版本试试

yodagg avatar Oct 27 '22 01:10 yodagg

请问这个问题解决了吗

ibreathebsb avatar Dec 01 '22 13:12 ibreathebsb

请问这个问题解决了吗

没解决,由于我用不到lowcode-rax-renderer,直接去掉这个模块了。

yodagg avatar Dec 01 '22 14:12 yodagg