查看: 2915|回复: 0

[游戏开发] 微信小游戏开发--报错ReferenceError: loadBabelMod is not defined

[复制链接]

6

主题

4

回帖

60

积分

管理员

积分
60
发表于 2020-2-10 18:25:47 | 显示全部楼层 |阅读模式

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

×

) V, y* V+ B" X! l; `微信小游戏开发,报错如下8 y8 ^6 d) s$ U
  D6 E+ y% E7 A+ x, \/ ?. G
Xnip2020-02-10_18-21-27.jpg 4 f/ M+ J1 m3 W, }" A
2 ?$ U0 V% h- Y  w) m
Wechat Lib:2.10.1, 2020.1.19 13:07:382 i. z+ J; X3 x$ l  _# V3 t
VM5465:1 gameSubContextThirdScriptError
, q2 s9 m2 R6 O3 B7 O6 }8 |loadBabelMod is not defined- W) e9 A5 e: u. f; v. T/ s
ReferenceError: loadBabelMod is not defined6 K; _6 U4 i9 k. w4 _! U/ Y
    at http://127.0.0.1:55201/game/src/ ... list/index.js:192:4: d  m  e9 Q/ g/ B. H
console.error @ VM5465:1. S1 N1 i: ~" T0 D/ s
errorReport @ VM5483 WAGame.js:2- ]& g3 S% ^& f
9 x6 Z: C; S. b& Y8 b
' Q" G7 W$ X3 i
解决办法是在项目设置里面,不要勾选 增强 转换  
) D2 ~0 ~+ c/ D! J' N4 V$ n7 t, p) S) k& B) x8 e9 |, C+ y
Xnip2020-02-10_18-22-09.jpg . @, U' T/ M4 L& O! i
thirdErrorReport @ VM5483 WAGame.js:2  U2 M& ?' ?( H: ~) ^4 t
(anonymous) @ VM5483 WAGame.js:24 _; V! K; B* d0 C/ `
f @ VM5498 WAGameSubContext.js:2$ [1 E1 X8 E( b8 L0 Y  f/ S
h @ VM5498 WAGameSubContext.js:28 M. v/ M6 R2 |# ^
(anonymous) @ VM5498 WAGameSubContext.js:2
' f4 z8 Y# f* O1 ~value @ VM5498 WAGameSubContext.js:2! @8 U! b: @0 G$ a# v! C
(anonymous) @ VM5498 WAGameSubContext.js:2
" E4 x& X5 i7 z& g$ Xerror (async); _' V) C' [1 m, q) N
(anonymous) @ VM5498 WAGameSubContext.js:2
, ~, c( m: a6 Z4 n(anonymous) @ VM5498 WAGameSubContext.js:2/ Q( p7 a! `- e) q$ b
(anonymous) @ VM5498 WAGameSubContext.js:2
/ K% ^% N6 c/ P. @( W; S4 p/ YVM5465:1 gameSubContextThirdScriptError$ B4 e: J4 N; }, |- [
module "@babel/runtime/helpers/interopRequireDefault" is not defined. U9 {3 ]+ s# D) |) G4 C8 S1 |& t) Y
Error: module "@babel/runtime/helpers/interopRequireDefault" is not defined
: [( ]6 }8 S( Z+ e% E6 V* K    at require (http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88260)
1 R# ]' I% g% ?    at http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88011( \. p$ z" |. e5 q' h( G& A
    at http://127.0.0.1:55201/game/src/ ... -list/index.js:3:30
  A2 ]8 V2 f& x    at require (http://127.0.0.1:55201/game/__dev__/WAGameSubContext.js:2:88401)6 E$ H& i/ `9 s1 _
    at <anonymous>:1:712 Q$ O! _, R6 P/ M$ F7 M5 I2 E
    at HTMLScriptElement.scriptLoaded (http://127.0.0.1:55201/game/subcontext:16:23)
) e% E! B4 ?0 _. e0 E' U4 {2 [, i    at HTMLScriptElement.script.onload (http://127.0.0.1:55201/game/subcontext:26:22)
( I( d2 `8 f5 N) b8 _9 C" }2 Z8 v* I" }' U# `- Y8 @. V
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部