一、该问题的重现步骤是什么?
1. 启动 bladex-boot 和 sword ,版本 2.9.1
2. 随便找个 .less 样式文件修改样式,比如修改一下搜索栏的长度。
二、你期待的结果是什么?实际看到的又是什么?
编译不报错,不然每次修改样式,都要重新启动前端。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
sword 2.9.1
四、请提供详细的错误堆栈信息,这很重要。
DONE Compiled successfully in 34476ms 上午11:40:08
App running at:
- Local: http://localhost:8301/ (copied to clipboard)
- Network: http://192.168.123.160:8301/
WAIT Compiling... 上午11:40:09
✔ Webpack
Compiled successfully in 2.57s
DONE Compiled successfully in 2574ms 上午11:40:12
WAIT Compiling... 上午11:41:34
● Webpack █████████████████████████ emitting (95%) AntDesignThemePlugin
Error occurred compiling file /home/caibh/gitee/gsta-ems/ems-browser/src/pages/Account/Center/Applications.less
Error [LessError: .clearfix is undefined] {
type: 'Name',
filename: '/home/caibh/gitee/gsta-ems/ems-browser/src/pages/Account/Center/Applications.less',
index: 494,
line: 24,
column: 4,
callLine: NaN,
callExtract: undefined,
extract: [ ' .cardInfo {', ' .clearfix();', ' margin-top: 16px;' ]
}
Error occurred compiling file /home/caibh/gitee/gsta-ems/ems-browser/src/pages/Account/Center/Center.less
Error [LessError: .textOverflow is undefined] {
type: 'Name',
filename: '/home/caibh/gitee/gsta-ems/ems-browser/src/pages/Account/Center/Center.less',
index: 1276,
line: 85,
column: 4,
callLine: NaN,
callExtract: undefined,
extract: [ ' transition: color 0.3s;', ' .textOverflow();', '' ]
}
Error occurred compiling file /home/caibh/gitee/gsta-ems/ems-browser/src/pages/Dashboard/Analysis.less
Error [LessError: .clearfix is undefined] {
type: 'Name',
filename: '/home/caibh/gitee/gsta-ems/ems-browser/src/pages/Dashboard/Analysis.less',
index: 407,
line: 23,
column: 4,
callLine: NaN,
callExtract: undefined,
extract: [ ' li {', ' .clearfix();', '' ]
}
Error occurred compiling file /home/caibh/gitee/gsta-ems/ems-browser/src/pages/Dashboard/Workplace.less
Error [LessError: .clearfix is undefined] {
type: 'Name',
filename: '/home/caibh/gitee/gsta-ems/ems-browser/src/pages/Dashboard/Workplace.less',
index: 816,
line: 46,
column: 2,
callLine: NaN,
callExtract: undefined,
extract: [ '.extraContent {', ' .clearfix();', '' ]
}
<--- Last few GCs --->
[73650:0x63c7770] 168283 ms: Mark-sweep 2027.5 (2086.6) -> 2026.0 (2090.4) MB, 1477.0 / 0.0 ms (average mu = 0.167, current mu = 0.084) allocation failure GC in old space requested
[73650:0x63c7770] 171571 ms: Mark-sweep (reduce) 2028.2 (2090.4) -> 2027.5 (2091.9) MB, 3061.4 / 0.1 ms (+ 208.4 ms in 34 steps since start of marking, biggest step 17.4 ms, walltime since start of marking 3289 ms) (average mu = 0.058, current mu = 0.0
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa389b0 node::Abort() [/opt/nodejs/v14.18.1/bin/node]
2: 0x96e0af node::FatalError(char const*, char const*) [/opt/nodejs/v14.18.1/bin/node]
3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/nodejs/v14.18.1/bin/node]
4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/nodejs/v14.18.1/bin/node]
5: 0xd73fd5 [/opt/nodejs/v14.18.1/bin/node]
6: 0xd74b5f [/opt/nodejs/v14.18.1/bin/node]
7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/nodejs/v14.18.1/bin/node]
8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/nodejs/v14.18.1/bin/node]
9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/nodejs/v14.18.1/bin/node]
10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/opt/nodejs/v14.18.1/bin/node]
11: 0x1446379 [/opt/nodejs/v14.18.1/bin/node]
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端