关于打包vant问题
#10740
Replies: 1 comment 2 replies
-
|
这个是之前项目里安装了 @types/react 导致的,可以拉最新的 dev 分支代码,没这个问题 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
各位大佬,泥萌好,我现在所在的团队正在研究学习vant的源码,我们使用vant 3.5.1 release版本的源码进行的研究,我们执行
报出这样的信息:
error-msg.txt
查阅报错信息,很多
TS2322: Type 'Element | ("" | Element | undefined)[]' is not assignable to type 'ReactNode'. Type 'Element' is not assignable to type 'ReactNode'.这样的错误,因此感觉是环境配置出了问题。留意到有nodejs版本只支持^14.16.0,尝试使用
n更换过nodejs版本到14.19.3,并删除pnpm-lock.yaml文件。但是问题依旧。当前的环境信息为:
请问怎么配置才能正常打包呢?请问是否有相关的指引?
谢谢大佬。
Beta Was this translation helpful? Give feedback.
All reactions