🐛 [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
yaodongyi commented
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)}
/>
0x3lang commented
无法复现,确认是不是项目配置问题
yaodongyi commented
yaodongyi commented
yaodongyi commented
除了遇到以上这几个之外,其他的都能够正常使用,奇奇怪怪的