uni-app编译到微信报错forceUpdate

Cannot read property 'forceUpdate' of undefined解决方法

Posted by Sunfy on 2020-08-18
Words 83 and Reading Time 1 Minutes
Viewed Times
Viewed Times
Visitors In Total

uni-app 微信小程序报错:Cannot read property ‘forceUpdate’ of undefined

在初次使用uni-app开发的时候,把项目运行到小程序的时候会包 Cannot read property ‘forceUpdate’ of undefined,

img

其实原因很简单,就是因为没有配置微信小程序

image-20211021100814050

配置好AppID之后,重新启动就不会报错了!


Copyright 2021 sunfy.top ALL Rights Reserved

...

...

00:00
00:00