首页 > 解决方案 > UC 浏览器不支持 Angular 8(最新更新)

问题描述

当我使用命令运行我的应用程序时

ng serve

在我的 UC 浏览器中,我看到 空白页. 只是有一个喜欢的标题。当我在控制台中查找时,我发现了这条消息

Fetching scripts with an invalid type/language attributes is deprecated and will be removed in M56, around January 2017. See https://www.chromestatus.com/features/5760718284521472 for more details

注意:在谷歌浏览器中它工作正常。UC 拥有 3.46% 的浏览器市场份额,我不想失去一些用户。事实上,Angular 的官方网站不会在 UC 浏览器中加载。我的配置

Angular CLI: 8.3.4
Node: 10.16.3
OS: win32 x64

标签: javascriptangularangular8uc-browser

解决方案


推荐阅读