16:03:43.537 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:03:43.537 // #ifdef %PLATFORM%
16:03:43.558 js代码
16:03:43.558 // #endif
16:03:43.560 at unpackage/dist/dev/app-plus/app-view.js:1
16:03:57.905 [警告⚠] unpackage\dist\dev\app-plus\app-view.js
文件体积超过 500KB,已跳过压缩以及 ES6 转 ES5 的处理,手机端使用过大的js库影响性能。
16:04:37.881 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:04:37.881 // #ifdef %PLATFORM%
16:04:37.896 js代码
16:04:37.912 // #endif
16:04:37.935 at node_modules/pako/lib/zlib/trees.js:1
16:04:43.195 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:04:43.199 // #ifdef %PLATFORM%
16:04:43.209 js代码
16:04:43.213 // #endif
16:04:43.221 at node_modules/pako/dist/pako_deflate.es5.js:1
16:04:43.558 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:04:43.568 // #ifdef %PLATFORM%
16:04:43.591 js代码
16:04:43.607 // #endif
16:04:43.607 at node_modules/pako/dist/pako_deflate.js:1
16:04:45.834 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:04:45.869 // #ifdef %PLATFORM%
16:04:45.869 js代码
16:04:45.885 // #endif
16:04:45.885 at node_modules/pako/dist/pako.esm.mjs:1
16:04:47.560 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:04:47.567 // #ifdef %PLATFORM%
16:04:47.567 js代码
16:04:47.582 // #endif
16:04:47.598 at node_modules/pako/dist/pako.js:1
16:04:49.787 条件编译失败,参考示例(注意 ifdef 与 endif 必须配对使用):
16:04:49.787 // #ifdef %PLATFORM%
16:04:49.787 js代码
16:04:49.787 // #endif
16:04:49.802 at node_modules/pako/dist/pako.es5.js:1
<--- Last few GCs --->
16:08:00.612 [7272:000001CCCAE9DE60] 394270 ms: Scavenge 2021.9 (2072.8) -> 2021.6 (2083.1) MB, 10.5 / 0.0 ms (average mu = 0.455, current mu = 0.204) allocation failure
16:08:00.612 [7272:000001CCCAE9DE60] 394298 ms: Scavenge 2028.3 (2083.1) -> 2027.9 (2083.8) MB, 10.7 / 0.0 ms (average mu = 0.455, current mu = 0.204) allocation failure
16:08:00.620 [7272:000001CCCAE9DE60] 394962 ms: Scavenge 2029.2 (2083.8) -> 2028.4 (2105.6) MB, 661.9 / 0.0 ms (average mu = 0.455, current mu = 0.204) allocation failure
16:08:00.623 <--- JS stacktrace --->
16:08:00.623 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
16:08:01.250 1: 00007FF6F54CB1EF v8::internal::CodeObjectRegistry::~CodeObjectRegistry+123599
16:08:01.258 2: 00007FF6F5458BA6 v8::internal::MicrotaskQueue::GetMicrotasksScopeDepth+65206
16:08:01.258 3: 00007FF6F5459C7D node::OnFatalError+301
16:08:01.260 4: 00007FF6F5D8C20E v8::Isolate::ReportExternalAllocationLimitReached+94
16:08:01.260 5: 00007FF6F5D767ED v8::SharedArrayBuffer::Externalize+781
16:08:01.260 6: 00007FF6F5C19DCC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1468
16:08:01.260 7: 00007FF6F5C16EE4 v8::internal::Heap::CollectGarbage+4244
16:08:01.268 8: 00007FF6F5C14860 v8::internal::Heap::AllocateExternalBackingStore+2000
16:08:01.271 9: 00007FF6F5C393E6 v8::internal::Factory::NewFillerObject+214
16:08:01.271 10: 00007FF6F596BB85 v8::internal::DateCache::Weekday+1797
16:08:01.271 11: 00007FF6F5E19F01 v8::internal::SetupIsolateDelegate::SetupHeap+494417
16:08:01.271 12: 000001CCCF0301B5
1 个回复
喜欢技术的前端 - QQ---445849201
这个得看代码,你可以全局搜一下 #ifdef 排查一下,没有结束#endif