升级到角度8后,开始出现这些错误。 Havent在网上发现任何有关此问题的信息。是因为文件不能具有多个导出。上载了具有所有导出功能的模型文件样本。
"export 'IOverlays' was not found in
'../../../../../shared/brief-data/brief-data.models'
ERROR in
./client/app/viz/globe/state/submodules/display/display.actions.ts
41:12-34
"export 'IPerformSettingB
ERROR in
./client/app/viz/globe/state/submodules/display/display.actions.ts
77:12-34
"export 'IPerformSettingBoolean' was not found in
'../../../models/globe'
ERROR in
./client/app/viz/globe/state/submodules/display/display.actions.ts
113:12-34
export interface IGlobeTimelinePoint {
date: Date;
}
export interface IGlobeTimelineData {
data: IGlobeTimelinePoint[];
presentSources: string[];
}
export interface ILiveFeedStatus {
acm: IAcm;
isLoading: boolean;
hasErrors: boolean;
error?: string;
}
export interface ILiveFeedStatuses {
[key: string]: ILiveFeedStatus;
}
export interface ILiveFeedIcons {
[key: string]: ILiveFeedIconConfig;
}
export interface IOntologyConfig {
[name: string]: {
values: string[];
};
}
答案 0 :(得分:0)
我有同样的问题。从文件名中删除.d
对我来说是固定的(例如my-declarations.d.ts
-> my-declarations.ts
。
我不知道为什么。