【发布时间】:2018-03-23 12:48:31
【问题描述】:
我正在尝试使用 ngx-chips 进行标签输入,但在导入 BrowserAnimationsModule 时遇到了这个问题。
在导入 BrowserAnimationsModule 时,我收到以下错误:
An unhandled exception occurred while processing the request.
NodeInvocationException: document is not defined
ReferenceError: document is not defined
一旦我在 app.module.shared.ts 下的 import 中评论 BrowserAnimationsModule,我的应用程序可以正常工作,但一旦我取消评论它,我就会遇到同样的错误。
请问我该如何丢弃这个,我已经为此工作了超过 4 天。 或建议任何其他 Angular 4 标签输入库 我正在使用 ASP.NET Core 2 SPA 模板。
谢谢...
【问题讨论】:
标签: asp.net angular web asp.net-core-2.0