|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- B+ G# A1 ?5 U/ c0 d2 Q& J
微信小游戏开发,报错如下
3 o l1 H3 }8 @* _% U- ]
! G' F+ @% | p2 i' {
" x, w5 N/ z/ ~' u) _
8 N' Y- G" I9 g; _Wechat Lib:2.10.1, 2020.1.19 13:07:386 D0 u8 [! R+ o; \
VM5465:1 gameSubContextThirdScriptError
' \! b$ k* r9 F( V: E4 {loadBabelMod is not defined
5 x5 S: x- `/ ?ReferenceError: loadBabelMod is not defined
7 E0 ]0 {4 O( S, H: | at http://127.0.0.1:55201/game/src/ ... list/index.js:192:4; J$ f% M/ a/ r# ^3 u
console.error @ VM5465:1% u' q* [9 Y2 d4 Y- e: |" i
errorReport @ VM5483 WAGame.js:2
( T+ q- }2 \9 p, y: {8 t3 H' r8 J; R& J1 j7 q
- ~1 n- h: y, r
解决办法是在项目设置里面,不要勾选 增强 转换 ( C* e; I7 Q( N5 J( U9 |, `
$ \% g0 j9 C; {
" V: C. P, U. t' N4 p# g5 i! xthirdErrorReport @ VM5483 WAGame.js:2
2 `6 z U& \; _) S(anonymous) @ VM5483 WAGame.js:2
' `& U7 Y2 a/ p+ ]9 p8 Q) Lf @ VM5498 WAGameSubContext.js:2) u9 J/ E$ e$ B/ j2 K
h @ VM5498 WAGameSubContext.js:2
5 m8 j* h0 c. C" } A3 Q+ ~(anonymous) @ VM5498 WAGameSubContext.js:2$ k0 |, J; ]1 q; `$ b
value @ VM5498 WAGameSubContext.js:2
4 [: t- Q& V# r7 ](anonymous) @ VM5498 WAGameSubContext.js:2
c! ~ e) [6 ^5 k. W" [% I- Rerror (async)
+ Z$ b2 F; W/ V(anonymous) @ VM5498 WAGameSubContext.js:2
$ j v8 f1 M6 x2 j1 |2 A8 ]9 \(anonymous) @ VM5498 WAGameSubContext.js:2
) ~' Q$ J% X* e3 f' x(anonymous) @ VM5498 WAGameSubContext.js:2
, a, x( _: n6 a% R% T& SVM5465:1 gameSubContextThirdScriptError
$ k1 ~2 V2 H. j5 L( umodule "@babel/runtime/helpers/interopRequireDefault" is not defined
z; ]. ^! K5 G q- GError: module "@babel/runtime/helpers/interopRequireDefault" is not defined
, r N& Q1 \2 Q# b& v; H5 h at require (http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88260)
4 ~ i$ y1 q# }) D at http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88011& f. V* p+ B$ n5 T
at http://127.0.0.1:55201/game/src/ ... -list/index.js:3:308 x+ a8 G0 [ @) @1 G2 Z3 g ]0 v9 y
at require (http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88401)7 T! }8 {$ V9 n7 r6 r% A( |
at <anonymous>:1:71
3 F2 ]6 {! P R4 R5 `/ o0 Z2 S at HTMLScriptElement.scriptLoaded (http://127.0.0.1:55201/game/subcontext:16:23)
4 i t8 x$ {# e# @- a8 j at HTMLScriptElement.script.onload (http://127.0.0.1:55201/game/subcontext:26:22)$ V2 S9 W5 {) y3 x0 @7 \& r
4 \8 C, [" h6 w7 _6 b) L0 B- m |
|