ng-zorro-antd10与Angular10.x打包报错
退回9.x又可以打包了,有没有遇到过的?
`ng build --c=production
92% chunk asset optimization optimize-css-webpack-pluginAn unhandled exception occurred: Lexical error on line
1: Unrecognized text.
Erroneous area:
1: auto + 1
^..^
See "C:UsersDEATHG~1AppDataLocalTempng-iWo0Hdangular-errors.log" for further details.`
错误详情如下:
`[error] JisonLexerError: Lexical error on line 1: Unrecognized text.
Erroneous area:
1: auto + 1
^..^
at E:DeathGhostAdminstyles.17d05810d9db1b3df57c.css:21784:3
at Object.parseError (E:DeathGhostAdmin
ode_modulespostcss-calcdistparser.js:1200:15)
at Object.lexer_parseError [as parseError] (E:DeathGhostAdmin
ode_modulespostcss-calcdistparser.js:2333:44)
at Object.lexer_next [as next] (E:DeathGhostAdmin
ode_modulespostcss-calcdistparser.js:3328:22)
at Object.lexer_fastLex [as fastLex] (E:DeathGhostAdmin
ode_modulespostcss-calcdistparser.js:3403:18)
at fastLex (E:DeathGhostAdmin
ode_modulespostcss-calcdistparser.js:1603:27)
at Parser.parse (E:DeathGhostAdmin
ode_modulespostcss-calcdistparser.js:1677:30)
at E:DeathGhostAdmin
ode_modulespostcss-calcdistlibransform.js:33:30
at walk (E:DeathGhostAdmin
ode_modulespostcss-value-parserlibwalk.js:7:16)
at ValueParser.walk (E:DeathGhostAdmin
ode_modulespostcss-value-parserlibindex.js:18:3)
at transformValue (E:DeathGhostAdmin
ode_modulespostcss-calcdistlibransform.js:24:50)
at _default (E:DeathGhostAdmin
ode_modulespostcss-calcdistlibransform.js:66:100)
at E:DeathGhostAdmin
ode_modulespostcss-calcdistindex.js:27:32
at E:DeathGhostAdmin
ode_modulespostcsslibcontainer.js:135:18
at Rule.each (E:DeathGhostAdmin
ode_modulespostcsslibcontainer.js:101:16)
at Rule.walk (E:DeathGhostAdmin
ode_modulespostcsslibcontainer.js:131:17)
at E:DeathGhostAdmin
ode_modulespostcsslibcontainer.js:148:24
`
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…