好的,我先看看,谢谢提醒
您好,choerodon-front目录下的子模块里我都进行了菜单初始化导入操作,然后我在choerodon-front根目录下执行npm start后,启动失败。信息如下,请帮忙看看是什么情况。
<— Last few GCs —>
[9787:0x102802a00] 63819 ms: Mark-sweep 1277.5 (1414.5) -> 1277.5 (1414.5) MB, 187.1 / 0.0 ms allocation failure GC in old space requested
[9787:0x102802a00] 64019 ms: Mark-sweep 1277.5 (1414.5) -> 1277.5 (1404.5) MB, 200.7 / 0.0 ms last resort GC in old space requested
[9787:0x102802a00] 64215 ms: Mark-sweep 1277.5 (1404.5) -> 1277.5 (1396.5) MB, 195.7 / 0.0 ms last resort GC in old space requested
<— JS stacktrace —>
==== JS stack trace =========================================
0: ExitFrame [pc: 0x2aa0056396c1]
Security context: 0x11c7c5b20769
1: fromString(aka fromString) [buffer.js:~333] [pc=0x2aa0057b411c](this=0x11c7ce5022e1 ,string=0x11c795c78fa9 <Very long string[11489877]>,encoding=0x11c7c5b328b1 <String[4]: utf8>)
2: from [buffer.js:201] [bytecode=0x11c74dd66809 offset=11](this=0x11c77e746b39 <JSFunction Buffer (sfi = 0x11c757d0a461)>,value=0x11c795c78fa9 <Very long stri…
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/local/bin/node]
2: node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
4: v8::internal::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/usr/local/bin/node]
5: v8::internal::String::SlowFlatten(v8::internal::Handlev8::internal::ConsString, v8::internal::PretenureFlag) [/usr/local/bin/node]
6: v8::String::WriteUtf8(char*, int, int*, int) const [/usr/local/bin/node]
7: node::StringBytes::Write(v8::Isolate*, char*, unsigned long, v8::Localv8::Value, node::encoding, int*) [/usr/local/bin/node]
8: node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding) [/usr/local/bin/node]
9: node::Buffer::(anonymous namespace)::CreateFromString(v8::FunctionCallbackInfov8::Value const&) [/usr/local/bin/node]
10: 0x2aa0056396c1
11: 0x2aa0057b411c
这是因为打包的代码太大了,超出了v8引擎的默认最大堆栈,。已经修复,用下面这个命令安装最新的boot就可以解决,总前端我们也会打hotfix
npm i choerodon-front-boot@0.10.5
收到,我再试试,谢谢