wepy小程序的一些问题

本文详细介绍了如何在Node.js环境下安装和配置Babel插件,包括transform-class-properties等,以支持现代JavaScript语法。同时,揭示了在小程序开发中,使用修改后的AppID可能导致的40029错误,强调了正确设置AppID的重要性。

Unknown plugin "transform-class-properties" specified in "base" at 0

linux

npm install babel-plugin-transform-class-properties babel-plugin-transform-decorators-legacy babel-plugin-transform-export-extensions babel-plugin-transform-object-rest-spread babel-preset-env --save dev

windows

npm install babel-plugin-transform-class-properties babel-plugin-transform-decorators-legacy babel-plugin-transform-export-extensions babel-plugin-transform-object-rest-spread babel-preset-env --save-dev

 

40029大坑

在小程序新建的时候就应该输入你正式的AppID,如果使用修改的AppID,则无法使用。

jscode2session会返回{"errcode":40029,"errmsg":"invalid code, hints: [ req_id: m3yw8a0472th20 ]

必须重新创建新的小程序项目。
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值