3lang3 / react-vant

React mobile UI Components base on Vant
https://react-vant.3lang.dev
MIT License
1.32k stars 189 forks source link

🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 #633

Closed yrq1429 closed 1 year ago

yrq1429 commented 1 year ago

Which React Vant packages are impacted?

What version of React Vant are you using?

3.2.0

Reproduce live demo(codesandebox or stackblitz)?

No response

Descripition

Uncaught (in promise) Error: Error: Cannot find module './base-f577a737.css' ![Uploading image.png…]()

3lang3 commented 1 year ago

方便给个复现demo吗

yrq1429 commented 1 year ago

很奇葩的问题。我同事安装之后没问题 然后加了句 import React from 'react';import React from 'react';

跑起来了  然后我重新yarn start又报错...

------------------ 原始邮件 ------------------ 发件人: "3lang3/react-vant" @.>; 发送时间: 2023年3月15日(星期三) 晚上6:03 @.>; @.**@.>; 主题: Re: [3lang3/react-vant] 🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 (Issue #633)

方便给个复现demo吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

yrq1429 commented 1 year ago

image

依赖里面都没有这个base.less文件?

3lang3 commented 1 year ago

删除依赖重新装下试试?

yrq1429 commented 1 year ago

重新装过依赖好几次了 现在解决了这个问题?

------------------ 原始邮件 ------------------ 发件人: "3lang3/react-vant" @.>; 发送时间: 2023年3月16日(星期四) 下午2:59 @.>; @.**@.>; 主题: Re: [3lang3/react-vant] 🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 (Issue #633)

Closed #633 as completed.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

3lang3 commented 1 year ago

无法复现,麻烦给出完整的复现步骤

yrq1429 commented 1 year ago

算了算了 在Taro3.6.1的项目中写的H5页面;我也不好提供代码

------------------ 原始邮件 ------------------ 发件人: "3lang3/react-vant" @.>; 发送时间: 2023年3月16日(星期四) 下午5:56 @.>; @.**@.>; 主题: Re: [3lang3/react-vant] 🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 (Issue #633)

无法复现,麻烦给出完整的复现步骤

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

3lang3 commented 1 year ago

react-vant 不支持taro的,你确定用的是这个库?

yrq1429 commented 1 year ago

我是taro编译的h5项目;这个不支持是吗?

------------------ 原始邮件 ------------------ 发件人: "3lang3/react-vant" @.>; 发送时间: 2023年3月16日(星期四) 晚上6:11 @.>; @.**@.>; 主题: Re: [3lang3/react-vant] 🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 (Issue #633)

react-vant 不支持taro的,你确定用的是这个库?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

3lang3 commented 1 year ago

我是taro编译的h5项目;这个不支持是吗? ------------------ 原始邮件 ------------------ 发件人: "3lang3/react-vant" @.>; 发送时间: 2023年3月16日(星期四) 晚上6:11 @.>; @.**@.>; 主题: Re: [3lang3/react-vant] 🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 (Issue #633) react-vant 不支持taro的,你确定用的是这个库? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

你看下你用的哪个包

lawshachMa commented 1 year ago

我也遇到这个问题了,taro + react-vant,确实是不支持taro嘛 image

3lang3 commented 1 year ago

我也遇到这个问题了,taro + react-vant,确实是不支持taro嘛 image

抱歉,确实不支持

yrq1429 commented 1 year ago

"react-vant": "1.4.19",

这个版本可以

------------------ 原始邮件 ------------------ 发件人: "3lang3/react-vant" @.>; 发送时间: 2023年3月28日(星期二) 下午5:57 @.>; @.**@.>; 主题: Re: [3lang3/react-vant] 🐛 [Bug]: 引入react-vant中的swipeCell组件会报错 (Issue #633)

我也遇到这个问题了,taro + react-vant,确实是不支持taro嘛

抱歉,确实不支持

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>