1***@163.com
1***@163.com
  • 发布:2019-05-06 14:47
  • 更新:2019-09-23 14:10
  • 阅读:7956

报错weex is not defined

分类:HBuilderX

ReferenceError: weex is not defined
14:45:58.633 webviewScriptError
14:45:58.654 46:12.364 31115 31115 I console : weex is not defined
14:45:58.675 46:12.364 31115 31115 I console : ReferenceError: weex is not defined
14:45:58.867 Uncaught ReferenceError: weex is not defined

2019-05-06 14:47 负责人:无 分享
已邀请:
香蕉不是笨啦啦

香蕉不是笨啦啦 - 哈哈哈

你这个问题很模糊啊

愚者

愚者 - 70

没定义

x***@126.com

x***@126.com

我这里也报错,
vue打开nvue页面,传递参数到nvue
uni.navigateTo({
url: "/pages/order/classstructure?backtype=1"
})
var pages = getCurrentPages();
console.log(JSON.stringify(pages))
var page = pages[pages.length - 2];
var currentWebview = page.$getAppWebview();
plus.webview.postMessageToUniNView({
orgid: this.userInfo.orgid,
siteid: this.userInfo.defsite
}, currentWebview.id);

错误如下:

[system] TypeError: Converting circular structure to JSON
at Object.stringify (<anonymous>)
at stringify (stringify.js:4)
at VueComponent.openCLASSSTRUCTURE (new.vue:456)
at click (new.vue?cd49:176)
at invokeWithErrorHandling (vue.runtime.esm.js:1859)
at HTMLElement.invoker (vue.runtime.esm.js:2184)
at HTMLElement.original._wrapper (vue.runtime.esm.js:7006)
(anonymous) @ index.umd.min.js:1
e.onError.length.e.onError @ index.umd.min.js:1
invokeWithErrorHandling @ vue.runtime.esm.js:1859
./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js.Vue.call_hook @ vue.runtime.esm.js:8529
a @ index.umd.min.js:1
o @ index.umd.min.js:1
invokeWithErrorHandling @ vue.runtime.esm.js:1859
Vue.$emit @ vue.runtime.esm.js:3892
i.a.config.errorHandler @ index.umd.min.js:1
globalHandleError @ vue.runtime.esm.js:1875
handleError @ vue.runtime.esm.js:1844
invokeWithErrorHandling @ vue.runtime.esm.js:1867
invoker @ vue.runtime.esm.js:2184
original._wrapper @ vue.runtime.esm.js:7006
bootstrap:887 ReferenceError: weex is not defined
at Object../node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-custom-block-loader/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-scoped-loader/index.js!../../../../workspace/svn/trunk/maximoApp/pages/order/classstructure.nvue?vue&type=script&lang=js& (classstructure.nvue:35)
at
webpack_require (bootstrap:766)
at fn (bootstrap:129)
at Module.../../../../workspace/svn/trunk/maximoApp/pages/order/classstructure.nvue?vue&type=script&lang=js& (classstructure.nvue?9c72:1)
at
webpack_require (bootstrap:766)
at fn (bootstrap:129)
at Module.../../../../workspace/svn/trunk/maximoApp/pages/order/classstructure.nvue (classstructure.nvue:1)
at
webpack_require (bootstrap:766)
at fn (bootstrap:129)
at pages.json:303
webpack_require.oe @ bootstrap:887
Promise.catch (async)
(anonymous) @ pages.json:303
resolveAsyncComponent @ vue.runtime.esm.js:3690
createComponent @ vue.runtime.esm.js:3210
_createElement @ vue.runtime.esm.js:3426
createElement @ vue.runtime.esm.js:3363
vm.$createElement @ vue.runtime.esm.js:3498
render @ pages.json:815
Vue._render @ vue.runtime.esm.js:3552
updateComponent @ vue.runtime.esm.js:4070
get @ vue.runtime.esm.js:4483
Watcher @ vue.runtime.esm.js:4472
mountComponent @ vue.runtime.esm.js:4077
./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8545
init @ vue.runtime.esm.js:3128
createComponent @ vue.runtime.esm.js:5982
createElm @ vue.runtime.esm.js:5929
patch @ vue.runtime.esm.js:6520
Vue._update @ vue.runtime.esm.js:3952
updateComponent @ vue.runtime.esm.js:4070
get @ vue.runtime.esm.js:4483
run @ vue.runtime.esm.js:4558
flushSchedulerQueue @ vue.runtime.esm.js:4314
(anonymous) @ vue.runtime.esm.js:1985
flushCallbacks @ vue.runtime.esm.js:1911
Promise.then (async)
timerFunc @ vue.runtime.esm.js:1938
nextTick @ vue.runtime.esm.js:1995
queueWatcher @ vue.runtime.esm.js:4406
update @ vue.runtime.esm.js:4548
notify @ vue.runtime.esm.js:730
mutator @ vue.runtime.esm.js:885
r @ index.umd.min.js:1
d @ index.umd.min.js:1
(anonymous) @ index.umd.min.js:1
iterator @ vue-router.esm.js:1974
step @ vue-router.esm.js:1741
step @ vue-router.esm.js:1745
runQueue @ vue-router.esm.js:1749
confirmTransition @ vue-router.esm.js:2003
transitionTo @ vue-router.esm.js:1898
push @ vue-router.esm.js:2247
push @ vue-router.esm.js:2693
r @ index.umd.min.js:1
o @ index.umd.min.js:1
(anonymous) @ index.umd.min.js:1
x @ index.umd.min.js:1
(anonymous) @ index.umd.min.js:1
F @ _export.js:36
(anonymous) @ index.umd.min.js:1
openCLASSSTRUCTURE @ new.vue:452
click @ new.vue?cd49:176
invokeWithErrorHandling @ vue.runtime.esm.js:1859
invoker @ vue.runtime.esm.js:2184
original._wrapper @ vue.runtime.esm.js:7006
vue.runtime.esm.js:619 [Vue warn]: Failed to resolve async component: function (resolve) {
var component = {
component:
webpack_require.e(/! require.ensure | pages-order-classstructure / "pages-order-classstructure").then((function () {return resolve(webpack_require(/! C:/workspace/svn/trunk/maximoApp/pages/order/classstructure.nvue / "../../../../workspace/svn/trunk/maximoApp/pages/order/classstructure.nvue"));}).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: weex is not defined

  • cybccc

    怎么解决的

    2021-03-04 15:55

该问题目前已经被锁定, 无法添加新回复