Angular 5错误:尝试从node_modules /node_modules/ngx-bootstrap/typeahead/typeahead-container.component.ngfactory.ts导入源文件

问题描述 投票:0回答:0

您有什么建议、想法吗?我该如何解决以下错误?

当我运行生产构建时发生这种情况。 更有趣的是,当我使用 -aot=false 运行生产构建时,它成功了。

错误:错误:尝试从node_modules包导入源文件:从C:导入C:...search-scrollbar.directive.ts .../node_modules/ngx-bootstrap/typeahead/typeahead-container.component.ngfactory.ts 在 TsCompilerAotCompilerTypeCheckHostAdapter.fileNameToModuleName (C:... ode_modules\@angula

build compiler-errors angular5 ngx-bootstrap aot
© www.soinside.com 2019 - 2024. All rights reserved.