微信小游戏minigame-api调用问题

cocos creator 3.8.1 我想在cocos creator中实现微信授权登录,代码没报错,但是绑定到节点时,会报错。直接丢失脚本,cc.missingscripts