在开发uniapp 编译至微信小程序的过程中报错

这篇具有很好参考价值的文章主要介绍了在开发uniapp 编译至微信小程序的过程中报错。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

在开发uniapp 编译至微信小程序的过程中报错

页面【pagesOthers/activite-page/components/featured-producList]错误:
 TypeError: Cannot read property 'components' of undefined
    at checkComponents (mp.runtime.esm.js:1402)
    at mergeOptions (mp.runtime.esm.js:1522)
    at mergeOptions (mp.runtime.esm.js:1543)
    at r.Vue.extend (mp.runtime.esm.js:5122)
    at r.Vue.extend (mp.runtime.esm.js:6017)
    at mixins (vue-class-component.esm.js:112)
    at Object.<anonymous> (index.js:94)
    at Object._ (featured-producList.js:850)
    at __webpack_require__ (bootstrap:91)
    at Module._ (featured-producList.vue?vue&type=script&lang=ts&:1)(env: macOS,mp,1.06.2210141; lib: 2.26.0)
(anonymous) @ VM4025:17546
doWhenAllScriptLoaded @ VM3945:18338
scriptLoaded @ VM3945:18360
(anonymous) @ VM3945:18385
Promise.then (async)
(anonymous) @ VM3945:18406
(anonymous) @ VM3945:18410
(anonymous) @ VM3944:18419
Promise.then (async)
(anonymous) @ VM3944:2
(anonymous) @ VM3944:18422
WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1 TypeError: Cannot read property 'components' of undefined
    at checkComponents (mp.runtime.esm.js:1402)
    at mergeOptions (mp.runtime.esm.js:1522)
    at mergeOptions (mp.runtime.esm.js:1543)
    at r.Vue.extend (mp.runtime.esm.js:5122)
    at r.Vue.extend (mp.runtime.esm.js:6017)
    at mixins (vue-class-component.esm.js:112)
    at Object.<anonymous> (index.js:94)
    at Object._ (featured-producList.js:850)
    at __webpack_require__ (bootstrap:91)
    at Module._ (featured-producList.vue?vue&type=script&lang=ts&:1)(env: macOS,mp,1.06.2210141; lib: 2.26.0)
errorReport @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
thirdErrorReport @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
a @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
_privEmit @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
emit @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
Pe @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
Pe @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
onLoad @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
re @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
doWhenAllScriptLoaded @ VM3945:18338
scriptLoaded @ VM3945:18360
(anonymous) @ VM3945:18385
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
App.vue:386 (env: macOS,mp,1.06.2210141; lib: 2.26.0)
onError @ App.vue:386
invokeWithErrorHandling @ mp.runtime.esm.js:1862
Vue.__call_hook @ mp.runtime.esm.js:5873
_vue.default.__call_hook @ index.js:1506
mpOptions.<computed> @ index.js:901
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
d @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
l.emit @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
emit @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
d @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
setTimeout (async)
globalThis.setTimeout @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
triggerThirdErrorMessage @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
errorReport @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
thirdErrorReport @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WAServiceMainContext.js?t=wechat&s=1667974006003&v=2.26.0:1
a @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
_privEmit @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
emit @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
Pe @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
Pe @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
onLoad @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
re @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
doWhenAllScriptLoaded @ VM3945:18338
scriptLoaded @ VM3945:18360
(anonymous) @ VM3945:18385
error (async)
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
(anonymous) @ WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1
WASubContext.js?t=wechat&s=1667974006003&v=2.26.0:1 Page "pagesOthers/pointsExchange/pointsExchange" has not been registered yet.

尝试了重新编译就马上好,过不了多久就有变成这样了,于是网上百度Page “pagesOthers/pointsExchange/pointsExchange” has not been registered yet.
看到别人说要吧 下图中勾调掉,尝试了 一下果然好了。开心哈哈在开发uniapp 编译至微信小程序的过程中报错文章来源地址https://www.toymoban.com/news/detail-504942.html

到了这里,关于在开发uniapp 编译至微信小程序的过程中报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • app跳转至微信小程序进行支付

    app端代码:(app两套代码做参考) ios开发工具包(SDK) 前往下载  官方文档   官方文档  

    2024年02月16日
    浏览(44)
  • HBuilderX 编译 Uniapp 微信小程序失败

    错误信息 12:58:12.378 failed to load config from vite.config.ts 12:58:12.381 error during build: 12:58:12.381 /xxxpath/node_modules/@unocss/vite/dist/index.cjs:238 12:58:12.384         return command === \\\"build\\\" !options.build?.ssr; 12:58:12.386                                                      ^ 12:58:12.388 SyntaxError

    2024年02月11日
    浏览(62)
  • webstom编译器运行uniapp项目(微信小程序)

    首先我们需要下载一个插件“Uniapp Tool” 然后在设置中进行HbuilderX路径和微信开发者工具路径配置 最后添加运行方式 最终我们就可以在webstom上运行uniapp项目到小程序,在这里你需要修改appid为微信小程序的appid

    2024年02月02日
    浏览(39)
  • uniapp微信小程序安装tailwindcss编译失败的解决思路

    今天在uniapp上安装tailwindcss后, 微信开发工具一直报wxss编译失败的错:如下图。 想来应该是Postcss没有把tailwindcss编译成css,所以app.wxss识别不了导致的问题。网上找了一圈, 也没有太好的办法。 后来想了个不太灵活的办法,既然识别不了,可以手动转换成css在引入到app里面

    2024年02月09日
    浏览(37)
  • 反编译微信小程序,可导出uniapp或taro项目

    微信小程序反编译(全网通用) 微信小程序反编译 反编译主要分为四个阶段 操作流程 1. node.js安装 2. node安装模块 3. 开始反编译 4. 导入到微信开发者工具既可运行 微信小程序反编译 当碰到不会写的小程序功能时,正好看到隔壁小程序有类似的功能,一般都想借鉴一下,本

    2024年02月12日
    浏览(26)
  • uniapp编译成微信小程序中遇到的兼容性问题

    模板里面如果存在这样的语法,则会报错Bad value with message;然而||\\\'\\\'和||[]则不会报错;如下所示; 解决方法:建议java后端加个拦截器统一处理下null 建议使用计算属性来访问全局变量; 原因: 排查循环依赖的问题 ,如下注释的代码即为循环依赖 uni.scss文件一定不能引用过多的样

    2024年02月07日
    浏览(50)
  • 【uniapp】使用canvas组件编译到微信小程序兼容出错问题

    使用uniapp编译跨平台项目会遇到不少兼容问题,这里主要讲canvas组件的,编译到微信小程序会有兼容出错问题,这里给讲一下解决方案,希望有帮助。 如果使用 CanvasContext 绘制,以下代码,编译到微信小程序上可能发现绘制不出来 看canvas组件的属性 type=\\\"2d\\\" 是否有加,要去掉

    2024年02月02日
    浏览(54)
  • uniapp中微信小程序不能编译style绑定方法的解决方案

    这是我的代码设置了根据传参显示不同字体颜色和不同背景色 这两个方法我都写在methods中 在浏览器中H5和app模拟器的效果是一样的如图 在HbuildX中运行至微信开发者工具无效,并且报错如图 第一步 第二步 在computed添加如下代码 至此修改成功,微信开发者工具运行效果如图所

    2024年02月16日
    浏览(30)
  • 用树莓派获取传感器数据通过Onenet云平台(物模型)传输至微信小程序(上)

           为了传输传感器数据,在网上找了很多方法,但都因为各种各样的问题最终没能成功实现。最终找到这个既简单,又方便实现的方法。步骤有点多,希望大家可以跟着教程,一步步耐心的做下去,愿大家都能成功实现数据传输。代码放在最后啦,下面开始我的教程。

    2024年03月23日
    浏览(31)
  • uniapp编译微信小程序主包过大无法上传进行分包优化步骤

    uniapp编译微信小程序主包过大无法上传进行分包优化步骤: 首先是在uniapp项目中的 manifest.json 文件中找到 源码视图 ,进去之后在微信小程序相关 mp-weixin 之下进行开启分包优化的相关配置: 开始新建项目目录,新建一个跟pages同等级的文件夹,然后把想要分包的文件 先复制

    2024年02月11日
    浏览(32)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包