react-vant icon indicating copy to clipboard operation
react-vant copied to clipboard

🐛 [Bug]: Uploader React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Open yaodongyi opened this issue 1 year ago • 4 comments

Which React Vant packages are impacted?

  • [X] react-vant (React Vant core)
  • [ ] react-vant-icons(React Vant Icon)

What version of React Vant are you using?

"react-vant": "^3.3.1"

Reproduce live demo(codesandebox or stackblitz)?

No response

Descripition

<Uploader
      accept="*"
      defaultValue={[
        {
          url: 'https://img.yzcdn.cn/vant/sand.jpg', // 图片文件
        },
      ]}
      onChange={v => console.log(v)}
    />
image

yaodongyi avatar Mar 21 '24 09:03 yaodongyi

无法复现,确认是不是项目配置问题

3lang3 avatar Mar 24 '24 01:03 3lang3

无法复现,确认是不是项目配置问题

    "react-vant": "^3.3.4"
import { Button, Cell, Input, Radio, Switch } from 'react-vant'

  <Radio.Group defaultValue="1">
    <Radio name="1">单选框1</Radio>
    <Radio name="2">单选框2</Radio>
  </Radio.Group>

这里很多组件都出现该问题,今天使用radio也是这样,版本3.3.4,是需要增加哪些配置才能正常使用呢? image

yaodongyi avatar Mar 25 '24 07:03 yaodongyi

image

yaodongyi avatar Mar 25 '24 07:03 yaodongyi

除了遇到以上这几个之外,其他的都能够正常使用,奇奇怪怪的

yaodongyi avatar Mar 25 '24 07:03 yaodongyi