确保你使用的是最新版本的Angular,以避免已知的兼容性问题。
检查你的代码是否在Firefox和Safari中运行良好,这可以通过在不同浏览器中测试你的webapp来实现。
确保你的代码中不包含任何Firefox和Safari不支持的语法或特性,例如部分CSS选择器或访问不允许访问的DOM元素。
通过Polyfills来填补兼容性差异,Polyfills是一种JavaScript代码,用于在浏览器中模拟缺少的API或特性。下面是一份示例代码:
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';
以上是几个可能解决Angular8 webapp在Firefox和Safari中无法打开的解决方法,具体情况还需具体分析。