jd-opensource / jd-opensource/nutui
TypeError: taro.defineComponent is not a function
- Dominant language
- Vue
- Stars
- 6.5k
- Forks
- 835
- PR merge metrics
- No merged PRs in 30d
Description
### NutUI 包名
@nutui/nutui-taro
### NutUI 版本号
4.2.8
### 平台
weapp
### 重现链接
https://nutui.jd.com/jdt/#/zh-CN/guide/start-jdt
### 重现步骤
按照官方的示例步骤操作,然后编译个微信小程序版本。用微信开发者工具(最新版)打开。报错如图

### 期望的结果是什么?
期望能正常显示,正常情况,应该有一个按钮
### 实际的结果是什么?
app.js错误:
TypeError: taro.defineComponent is not a function
at vendors.js?t=wechat&s=1738919558360&v=9160194f9cfec7c9ecc725858db3e0f9:210
at WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1
at _.runWith (WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1)
at q (WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1)
at n (WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1)
at taro.js?t=wechat&s=1738919558360&v=fd11144792d57b30fed4b8bc448c6b71:3
at WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1
at _.runWith (WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1)
at q (WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1)
at n (WASubContext.js?t=wechat&s=1738919558360&v=3.7.7:1)(env: Windows,mp,1.06.2412050; lib: 3.7.7)
### 环境信息
_No response_
### 其他补充信息
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.