Open xmsz opened 2 years ago
还有运行npm run start
会卡住
● Web █████████████████████████ building (28%) 1/3 entries 58/76 dependencies 21/40 modules 15 active
babel-loader › rax-platform-loader › node_modules/html-entities/lib/named-references.js
(node:6671) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the
'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
<--- Last few GCs --->
[6671:0x87f3c0] 21324 ms: Scavenge 911.2 (932.9) -> 909.4 (933.4) MB, 1.1 / 0.0 ms (average mu = 0.237, current mu = 0.207) allocation failure
[6671:0x87f3c0] 21327 ms: Scavenge 911.7 (933.4) -> 909.9 (933.9) MB, 1.3 / 0.0 ms (average mu = 0.237, current mu = 0.207) allocation failure
[6671:0x87f3c0] 21329 ms: Scavenge 912.0 (933.9) -> 910.1 (937.9) MB, 1.4 / 0.0 ms (average mu = 0.237, current mu = 0.207) allocation failure
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
^C
你开启了 swc 么,可以提供下你云构建的系统环境,os 和 cpu 架构
第二个卡住是因为 babel 全量编译了 node_modules,https://rax.js.org/docs/guide/build-config#compileDependencies 可以通过这个配置项按需编译
os 和 cpu 架构
Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017 CentOS Linux release 7.4.1708 (Core) x86_64 在腾讯云上随便搞得2g服务器 + centos7.4 + jenkins
然后项目是默认创建的 没有任何改动
测试链接好像都打不开
解决了吗,我服务器上编译也是这个错误,linux环境
你开启了 swc 么,可以提供下你云构建的系统环境,os 和 cpu 架构
var triples = triples_1.platformArchTriples[PlatformName][ArchName]; console.log(triples); [ { platform: 'linux', arch: 'x64', abi: 'gnu', platformArchABI: 'linux-x64-gnu', raw: 'x86_64-unknown-linux-gnu' }, { platform: 'linux', arch: 'x64', abi: 'gnux32', platformArchABI: 'linux-x64-gnux32', raw: 'x86_64-unknown-linux-gnux32' }, { platform: 'linux', arch: 'x64', abi: 'musl', platformArchABI: 'linux-x64-musl', raw: 'x86_64-unknown-linux-musl' } ]
解决了吗?linux/arm64平台上打包时遇到了同样的问题。
背景