微信小程序报错:Cannot read property ‘forceUpdate‘ of undefined

转载于:https://blog.csdn.net/qq_40907752/article/details/107710357

微信小程序报错:Cannot read property ‘forceUpdate’ of undefined
在这里插入图片描述
百度之后说是没有给uniapp配置小程序的ID
在项目的根目录下有一个manifest.json的文件(如图):
在这里插入图片描述
打开之后找到微信小程序配置——> 微信小程序AppID 把你自己的小程序ID填进去之后重启HBuilder 和微信开发者工具,然后重新运行当前项目就OK了