生成时Angular ssr环境变量出现“ EventTarget未定义”错误

时间:2018-07-31 04:14:26

标签: angular angular5 angular-universal

angular-cli.json

<%@ Page Language="C#" AutoEventWireup="true" Inherits="ExpressBill.XNet.UI.Ncoa.Ncoa_PdfViewer" Codebehind="PdfViewer.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Pdf Viewer</title>
</head>
<body>
<form id="_pdfViewer" runat="server">
<div>

</div>
</form>

环境文件

environment / environment.ts

environment / environment.prod.ts

environment / environment.staging.ts

命令 ng build --env = staging

0 个答案:

没有答案