从Css Minimizer版本部署到Jenkins * 时出错:“第15.2至15.3条”

lkaoscv7  于 2022-12-26  发布在  Jenkins
关注(0)|答案(1)|浏览(157)

在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已完成;寻找清洁的解决方案。

pu82cl6c

pu82cl6c1#

我在.browserslistrc文件中添加了这几行不是ios_saf 15.2-15.3不是safari 15.2-15.3,效果很好

相关问题