NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.53k stars 758 forks source link

Cannot set property 'props' of undefined when using AtButton #1735

Closed iamphc closed 9 months ago

iamphc commented 9 months ago

问题描述 using AtButton component in weapp page, got "Cannot set property 'props' of undefined".

复现步骤 1、use taro to create a miniapp 2、create a page 3、page code below:

<template>
  <view>
    <AtButton>123</AtButton>
  </view>
</template>

<script lang="ts" name="News" setup>
import { AtButton } from "taro-ui";
</script>

4、console got Cannot set property 'props' of undefined

期望行为 show AtButton without error

报错信息 Cannot set property 'props' of undefined

系统信息

ps:

image
taro-ui-bot[bot] commented 9 months ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

robinv8 commented 9 months ago

taro-ui 只支持 react 语法