Table of Contents


报错内容

页面【pages/checkInDetails/components/drinkPage/index]错误:
TypeError: Cannot read property ‘call’ of undefined
at webpack_require (bootstrap:91)
at Object.<anonymous> (index.vue:157)
at Object._ (index.vue:256)
at webpack_require (bootstrap:91)
at Module._ (index.vue?4d10:1)
at webpack_require (bootstrap:91)
at Module._ (index.js:18)
at webpack_require (bootstrap:91)
at Object.pagesCheckInDetailsComponentsDrinkPageIndexCreateComponent (index.vue?a0e4:2)
at webpack_require (bootstrap:91)(env: Windows,mp,1.06.2405020; lib: 3.1.5)

解决方法

1.点击报错文件重新编译
![uniapp打开微信开发者工具页面【pages/checkInDetails/components/drinkPage/index]错误: TypeError: Cannot read proper_bootstrap]( https://s2.51cto.com/images/blog/202408/21134807_66c57f97f0c5632980.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/format,webp/resize,m_fixed,w_1184)
2.可能是缺少图片 手动添加图片

3.左上角“项目”→“重新打开此项目”并编译,或者重启一下开发者工具或电脑尝试下
4.重启hbuilder
5.重新加载依赖

 npm install 
 cnpm install 
  • 1.
  • 2.

6.重启电脑

(6条亲测有效)

温馨提示:

下次还可能有同样的问题,最好记得这次的打开步骤。

您好,我是肥晨。
欢迎关注我获取前端学习资源,日常分享技术变革,生存法则;行业内幕,洞察先机。