在Jenkins中展开时,scss
中出现错误
/var/lib/jenkins/workspace/x/src/app/dashboards/components/health-widget/health-widget.component.scss
- Error: /var/lib/jenkins/workspace/x/src/app/dashboards/components/health-widget/health-widget.component.scss from Css Minimizer Error: Transform failed with 1 error: error: Invalid version: "15.2-15.3"
at failureErrorWithLog (/var/lib/jenkins/workspace/x/node_modules/esbuild/lib/main.js:1493:15)
at /var/lib/jenkins/workspace/Ops-Unified-UI_Ops-UI_PR-519/node_modules/esbuild/lib/main.js:1282:29
at /var/lib/jenkins/workspace/Ops-Unified-UI_Ops-UI_PR-519/node_modules/esbuild/lib/main.js:629:9
at handleIncomingPacket (/var/lib/jenkins/workspace/x/node_modules/esbuild/lib/main.js:726:9)
at Socket.readFromStdout (/var/lib/jenkins/workspace/Ops-Unified-UI_Ops-UI_PR-519/node_modules/esbuild/lib/main.js:596:7)
at Socket.emit (events.js:375:28)
at addChunk (internal/streams/readable.js:290:12)
at readableAddChunk (internal/streams/readable.js:265:9)
at Socket.Readable.push (internal/streams/readable.js:204:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
将angular.json
中的优化对象内的minify
属性更改为false
已完成;寻找清洁的解决方案。
1条答案
按热度按时间pu82cl6c1#
我在.browserslistrc文件中添加了这几行不是ios_saf 15.2-15.3不是safari 15.2-15.3,效果很好