1***@qq.com
1***@qq.com
  • 发布:2022-06-07 17:43
  • 更新:2022-06-08 17:11
  • 阅读:405

#插件讨论# 【 HasChat聊天应用 - howcode 】Reason: ReferenceError: require is not defined

分类:uni-app
关联插件: HasChat聊天应用

下载运行报错
index.js:978 ReferenceError: require is not defined
at Module.JH3M (pages-index-index.js:1424:1)
at webpack_require (index.js:854:30)
at fn (index.js:151:20)
at 1R94 (pages-index-index.js:87:25)
at
webpack_require
(index.js:854:30)
at fn (index.js:151:20)
at Object.HcyO (pages-index-index.js:993:1223)
at webpack_require (index.js:854:30)
at fn (index.js:151:20)
at 61fm (pages-index-index.js:343:106)
webpack_require
.oe @ index.js:978
Promise.catch (async)
(anonymous) @ index.js:1350
resolveAsyncComponent @ chunk-vendors.js:5238
createComponent @ chunk-vendors.js:4755
_createElement @ chunk-vendors.js:4977
createElement @ chunk-vendors.js:4908
vm.$createElement @ chunk-vendors.js:5049
render @ index.js:1660
Vue._render @ chunk-vendors.js:5100
updateComponent @ chunk-vendors.js:5618
get @ chunk-vendors.js:6037
Watcher @ chunk-vendors.js:6026
mountComponent @ chunk-vendors.js:5625
push.4UNb.Vue.$mount @ chunk-vendors.js:10130
init @ chunk-vendors.js:4671
createComponent @ chunk-vendors.js:7532
createElm @ chunk-vendors.js:7479
patch @ chunk-vendors.js:8031
Vue._update @ chunk-vendors.js:5497
updateComponent @ chunk-vendors.js:5618
get @ chunk-vendors.js:6037
Watcher @ chunk-vendors.js:6026
mountComponent @ chunk-vendors.js:5625
push.4UNb.Vue.$mount @ chunk-vendors.js:10130
init @ chunk-vendors.js:4671
createComponent @ chunk-vendors.js:7532
createElm @ chunk-vendors.js:7479
patch @ chunk-vendors.js:8031
Vue._update @ chunk-vendors.js:5497
updateComponent @ chunk-vendors.js:5618
get @ chunk-vendors.js:6037
Watcher @ chunk-vendors.js:6026
mountComponent @ chunk-vendors.js:5625
push.4UNb.Vue.$mount @ chunk-vendors.js:10130
init @ chunk-vendors.js:4671
createComponent @ chunk-vendors.js:7532
createElm @ chunk-vendors.js:7479
createChildren @ chunk-vendors.js:7607
createElm @ chunk-vendors.js:7508
patch @ chunk-vendors.js:8031
Vue._update @ chunk-vendors.js:5497
updateComponent @ chunk-vendors.js:5618
get @ chunk-vendors.js:6037
Watcher @ chunk-vendors.js:6026
mountComponent @ chunk-vendors.js:5625
push.4UNb.Vue.$mount @ chunk-vendors.js:10130
init @ chunk-vendors.js:4671
createComponent @ chunk-vendors.js:7532
createElm @ chunk-vendors.js:7479
patch @ chunk-vendors.js:8070
Vue._update @ chunk-vendors.js:5497
updateComponent @ chunk-vendors.js:5618
get @ chunk-vendors.js:6037
Watcher @ chunk-vendors.js:6026
mountComponent @ chunk-vendors.js:5625
push.4UNb.Vue.$mount @ chunk-vendors.js:10130
eval @ main.js:22
w1tC @ index.js:1986
webpack_require @ index.js:854
fn @ index.js:151
1 @ index.js:1009
webpack_require
@ index.js:854
checkDeferredModules @ index.js:46
(anonymous) @ index.js:994
(anonymous) @ index.js:997
Show 35 more frames
chunk-vendors.js:2128 [Vue warn]: Failed to resolve async component: function (resolve) {
var component = {
component: webpack_require.e(/! require.ensure | pages-index-index / "pages-index-index").then((function () {return resolve(webpack_require(/! /Users/awei/Desktop/hospitalSys/HasChat聊天应用示例/pages/index/index.vue / "vQxq"));}).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;
}
Reason: ReferenceError: require is not defined

2022-06-07 17:43 负责人:无 分享
已邀请:
howcode

howcode - howcode

npm install了吗

要回复问题请先登录注册