3lang3 / react-vant

React mobile UI Components base on Vant

Home Page:https://react-vant.3lang.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛 [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.

yaodongyi opened this issue · comments

Which React Vant packages are impacted?

  • 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

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

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

    "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

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