Taro4.0.13跨端开发发现的几个BUG #17712
a435630144
started this conversation in
Feature Request
Replies: 0 comments
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.
-
1、项目框架为react,TS,SASS,npm,vite,使用gitee默认模板,项目初始化之后,直接编译为alipay小程序会直接编译失败报错。

D:\OneDrive\自己的笔记本电脑\桌面\新建文件夹\taro4.0.13init\taro4.0.13vite\node_modules@tarojs\vite-runner\dist\mini\emit.js:188
if (chunk.type === 'asset') {
^
TypeError: Cannot read properties of undefined (reading 'type')
此问题把vite更换成webpack就不会出现,应该是vite编译的配置有问题。
2、不管采用vite还是webpack,项目初始化之后,编译成百度小程序,百度小程序页面不渲染任何元素,白屏,但是控制台能够正常运行函数

3、当使用Mobx状态管理时候,编译为alipay小程序会报错。

4、编译为alipay小程序时候,编译器无法处理断言语句,会直接报错,比如inputName = user?.name,包括导入到库中如果存在这种写法,整个库都无法再alipay小程序中正常使用。


5、问题优化反馈,能不能更新一下除了默认模板以外的模板,比如redux模板、mobx模板、NUTUI模板,项目初始化之后,安装依赖都会直接报错版本冲突,还要手动更改版本
Beta Was this translation helpful? Give feedback.
All reactions