6***@qq.com
6***@qq.com
  • 发布:2022-08-04 16:51
  • 更新:2024-02-18 14:59
  • 阅读:715

引入uni-data-select 项目报错, 去掉select就好使

分类:uni-app

[Vue warn]: Failed to resolve async component: function (resolve) {
var component = {
component: webpack_require.e(/! require.ensure | pages-constructionManage-createOrEdit / "pages-constructionManage-createOrEdit").then((function () {
return resolve(
webpack_require
(/! ./src/pages/constructionManage/createOrEdit.vue / "QG5w"));
}).bind(null, webpack_require)).catch(webpack_require.oe),
delay: uniConfig['async'].delay,
timeout:
uniConfig['async'].timeout
};

if (uniConfig['async']['loading']) {
component.loading = {
name: 'SystemAsyncLoading',
render: function render(createElement) {
return createElement(
uniConfig['async']['loading']);
}
};
}

if (uniConfig['async']['error']) {
component.error = {
name: 'SystemAsyncError',
render: function render(createElement) {
return createElement(
uniConfig['async']['error']);
}
};
}

return component;
}

2022-08-04 16:51 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

上传下可复现 demo

  • 6***@qq.com (作者)

    仔细找了一下代码,

    发现uni-data-select.vue

    mixins: [uniCloud.mixinDatacom || {}],

    这行代码注释后就不报错, 但是注释后组件就不能渲染了,

    尝试了uni-ui 降级也不行,

    项目是通过cli创建的 引入uni-ui的方式也是easycom

    其他的form表单组件可以, select 和picker 都是报这个错误

    2022-08-04 18:28

  • 6***@qq.com (作者)

    uniCloud.mixinDatacom 这行代码是怎么执行的, 组件都没有import相关的代码

    2022-08-04 18:30

  • DCloud_UNI_WZF

    回复 6***@qq.com: datacom

    2022-08-05 17:12

2***@qq.com

2***@qq.com

请问有解决吗,我也遇到了相同的问题

  • JXWang

    您好,可否方便上传一下可复现的demo代码或工程,我来排查一下

    2024-02-19 14:29

要回复问题请先登录注册