前端构建失败,报错:ERROR in :"let-" is only supported on ng-template elements
报错信息:
原因:@ ngx-bootstrap 如果应用在 Angular5的时候,需要版本为2.X.X
进行升级:
npm uninstall --save ngx-bootstrap
npm cache clean -f
npm install --save ngx-bootstrap
参考:https://stackoverflow.com/questions/47866158/let-is-only-supported-on-ng-template-elements
修改版本之后,然后重新下载node_module库问题解决。