angular - VS 2019 解决方案构建错误,原因是导出赋值的表达式必须是环境上下文中的标识符或限定名称
问题描述
在 Visual Studio 2019,Typescript 版本 3.8.3 中构建解决方案时,我得到了
The expression of an export assignment must be an identifier or qualified name in an ambient context.
在index.d.ts
第 8 行的文件中:export default "ui.router";
// Type definitions for Angular JS (ui.router module) 1.1.5
// Project: https://github.com/angular-ui/ui-router
// Definitions by: Michel Salib <https://github.com/michelsalib>, Ivan Matiishyn <https://github.com/matiishyn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as angular from 'angular';
export default "ui.router";
export type IState = angular.ui.IState;
如何解决?
由于此错误,无法发布 Web 应用程序