我使用vscode写了两个页面,其中一个页面作为组件插入到另一个页面中(自定义组件),编译没有报错,npm run dev后正常启动项目;
但在微信开发工具中,本项目就报错,错误信息如下如图:图上有详细的信息
页面【pages/logs/main]错误:
TypeError: Cannot read property '_init' of undefined
at Vue$3 (vendor.js? [sm]:3976)
at Object._ (main.js? [sm]:43)
at __webpack_require__ (manifest.js? [sm]:59)
at Object._ (main.js? [sm]:12)
at __webpack_require__ (manifest.js? [sm]:59)
at Object.webpackJsonpCallback [as webpackJsonpMpvue] (manifest.js? [sm]:30)
at main.js? [sm]:3
at require (VM2795 WAService.js:2)
at <anonymous>:171:9
at doWhenAllScriptLoaded (<anonymous>:830:21)