Skip to content

TypeError: taro.defineComponent is not a function #3245

@qq237661704

Description

@qq237661704

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.2.8

平台

weapp

重现链接

https://nutui.jd.com/jdt/#/zh-CN/guide/start-jdt

重现步骤

按照官方的示例步骤操作,然后编译个微信小程序版本。用微信开发者工具(最新版)打开。报错如图

Image

期望的结果是什么?

期望能正常显示,正常情况,应该有一个按钮

实际的结果是什么?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions