|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( d ~/ Z7 ^8 G. t# K+ B- O
微信小游戏开发,报错如下
Y: W/ h$ {1 U( s/ R2 N
1 w) m- R/ {5 [& j
! |% o5 r, d' Z, z8 d: r5 |& H( T( I
Wechat Lib:2.10.1, 2020.1.19 13:07:38
. c" }: l, x; |* FVM5465:1 gameSubContextThirdScriptError {: L7 @7 }' k# a: a: p1 r, I( @
loadBabelMod is not defined% `* a- B, b8 X c5 B' }: f p6 y
ReferenceError: loadBabelMod is not defined+ I. B7 _# N8 u7 W5 u9 c% g; n
at http://127.0.0.1:55201/game/src/ ... list/index.js:192:4$ z& i/ d2 `+ D9 J
console.error @ VM5465:1
4 h# B" V) G# C8 CerrorReport @ VM5483 WAGame.js:2
6 n2 N J: X# `( x( i5 Q; h. l3 C* h+ C0 y) K0 I! \
- b( N B% F( h5 {3 y( j$ g
解决办法是在项目设置里面,不要勾选 增强 转换 " r0 H, m7 C( q
9 b0 p3 @: B0 H$ [
1 P% _7 P4 _* T$ x& gthirdErrorReport @ VM5483 WAGame.js:2
" W# w3 a9 m* e1 ~+ [* c(anonymous) @ VM5483 WAGame.js:2
) ~3 H5 G8 o8 Af @ VM5498 WAGameSubContext.js:2
! F. d7 b4 i4 G* p5 T' v7 v* Ah @ VM5498 WAGameSubContext.js:2
! Z" d( u, ], G2 w! r(anonymous) @ VM5498 WAGameSubContext.js:2
t8 V# Y# x* Ovalue @ VM5498 WAGameSubContext.js:2) h, q8 K9 c9 t; L! E
(anonymous) @ VM5498 WAGameSubContext.js:2
& l: N7 F& |3 Q1 @! m* Q. derror (async)+ ]( G5 f& J0 x Z L
(anonymous) @ VM5498 WAGameSubContext.js:27 A* \8 Y9 L# X) D5 M+ f
(anonymous) @ VM5498 WAGameSubContext.js:21 _$ ]4 `; R. r) Z* z
(anonymous) @ VM5498 WAGameSubContext.js:2! i1 A$ W) T' {$ t% i
VM5465:1 gameSubContextThirdScriptError
0 M5 n1 @1 e. I4 v, Smodule "@babel/runtime/helpers/interopRequireDefault" is not defined: a# A8 R: X* U
Error: module "@babel/runtime/helpers/interopRequireDefault" is not defined
/ n' s9 U/ U9 T, B s at require (http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88260)
! L% _- b, x7 _4 |3 D/ A at http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88011. Z6 [/ {2 D0 h8 _
at http://127.0.0.1:55201/game/src/ ... -list/index.js:3:30
) n- T$ a8 G7 g7 L( b+ ~5 y at require (http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88401)
) Z# l( [+ r9 r at <anonymous>:1:71
# u* J9 }' H9 M6 \7 v' Y at HTMLScriptElement.scriptLoaded (http://127.0.0.1:55201/game/subcontext:16:23)4 q# \1 g9 Q5 R7 {, s1 k. g
at HTMLScriptElement.script.onload (http://127.0.0.1:55201/game/subcontext:26:22)
: a D0 J- H* `! S% |5 J7 g0 @
4 w6 m {: C$ t0 o: ^, e |
|