Angular 12执行ng build生产构建时偶现Unexpected token ')'语法错误
Angular 12生产构建偶现语法错误问题
使用Angular 12开发的项目,执行ng build --configuration=production命令构建生产版本时,部分系统会偶发Uncaught SyntaxError: Unexpected token ')'错误。清除浏览器缓存后错误可能暂时消失,但后续仍会再次出现。
错误截图如下:

项目的index.html代码如下:
<html lang="fa" class="h-100"> <head> <meta charset="utf-8"> <title>Project</title> <base href="/"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> </head> <body class="h-100 fixed-menu"> <app-root></app-root> </body> </html>
内容的提问来源于stack exchange,提问作者ali m
相关产品推荐
相关产品推荐

