-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taro4 官方脚手架创建的 vite react 工程,使用虚拟滚动组件报错 #16521
Comments
我可以提 pr 协助解决问题,但是现在 debug 看了一圈,不知道是哪个插件做的转换,是 transform 还是 load 还是 resolveId,插件太多没有头绪,可以给点提示吗 补充:debug 到了 https://github.com/NervJS/taro/blob/main/packages/taro-vite-runner/src/mini/config.ts#L189C1-L190C1 这个位置转成 taro.virtualList 的,而且 dist 产物里没有任何地方把这个 virtualList 打包成代码,vendor common taro 这三个 js 文件内都没有打包,所以改这里也无效 |
你们怎么跑起来的 为啥我一跑就是 一堆错误 vue 模板 执行安装项目依赖 npm install, 需要一会儿... |
相关平台
微信小程序
复现仓库
https://github.com/javaxiu/taro_vite_virtual_list.git
小程序基础库: 3.5.7
使用框架: React
复现步骤
期望结果
正常执行并渲染出来预期的demo
实际结果
vite 版本有问题,webpack 没有问题
环境信息
The text was updated successfully, but these errors were encountered: