echarts4taro3
echarts4taro3 copied to clipboard
支付宝小程序开发者工具编译报错问题咨询
请问下,支付宝小程序开发者工具出现这样的提示,用的是vue3,开发者工具版本试过v3.8.21和v3.6.1,本地node版本用过v16.20.2和v18.20.2,可能是什么原因呢?运行 vue3 的示例demo也会出现类似报错,但微信开发者工具运行正常。
<--- Last few GCs --->
[52265:0x102d17000] 138801 ms: Scavenge 4081.3 (4102.2) -> 4080.6 (4102.2) MB, 7.2 / 0.0 ms (average mu = 0.286, current mu = 0.219) allocation failure
[52265:0x102d17000] 138809 ms: Scavenge 4081.5 (4102.2) -> 4080.7 (4102.2) MB, 7.1 / 0.0 ms (average mu = 0.286, current mu = 0.219) allocation failure
[52265:0x102d17000] 138819 ms: Scavenge 4082.0 (4102.6) -> 4081.3 (4102.9) MB, 7.9 / 0.0 ms (average mu = 0.286, current mu = 0.219) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x10099a939]
Security context: 0x3416aee408d1 <JSObject>
1: SourceMapConsumer_allGeneratedPositionsFor [0x34162c130b19] [/snapshot/cube/node_modules/babel-core/node_modules/source-map/lib/source-map-consumer.js:~178] [pc=0x15d674af8e3](this=0x34164e8c0169 <BasicSourceMapConsumer map = 0x34167050fcf9>,0x3416bebc01c1 <Object map = 0x3416705103d9>)
2: /* anonymous */(aka /* anonymous */) [0x341664500119] [/snaps...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
请问下,支付宝小程序开发者工具出现这样的提示,用的是vue3,开发者工具版本试过v3.8.21和v3.6.1,本地node版本用过v16.20.2和v18.20.2,可能是什么原因呢?运行 vue3 的示例demo也会出现类似报错,但微信开发者工具运行正常。
<--- Last few GCs ---> [52265:0x102d17000] 138801 ms: Scavenge 4081.3 (4102.2) -> 4080.6 (4102.2) MB, 7.2 / 0.0 ms (average mu = 0.286, current mu = 0.219) allocation failure [52265:0x102d17000] 138809 ms: Scavenge 4081.5 (4102.2) -> 4080.7 (4102.2) MB, 7.1 / 0.0 ms (average mu = 0.286, current mu = 0.219) allocation failure [52265:0x102d17000] 138819 ms: Scavenge 4082.0 (4102.6) -> 4081.3 (4102.9) MB, 7.9 / 0.0 ms (average mu = 0.286, current mu = 0.219) allocation failure <--- JS stacktrace ---> ==== JS stack trace ========================================= 0: ExitFrame [pc: 0x10099a939] Security context: 0x3416aee408d1 <JSObject> 1: SourceMapConsumer_allGeneratedPositionsFor [0x34162c130b19] [/snapshot/cube/node_modules/babel-core/node_modules/source-map/lib/source-map-consumer.js:~178] [pc=0x15d674af8e3](this=0x34164e8c0169 <BasicSourceMapConsumer map = 0x34167050fcf9>,0x3416bebc01c1 <Object map = 0x3416705103d9>) 2: /* anonymous */(aka /* anonymous */) [0x341664500119] [/snaps... FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
看上面的报错信息,更像是本地运行环境 Node 分配的内存资源不够,可以换个其他设备试试,或者调整一下内存分配。
我本地运行了的是上面这个版本 好像没什么问题的