简体   繁体   English

在使用 C# 后端为我的 Angular 项目进行生产构建时遇到问题

[英]Facing an issue while making a production build for my angular project with backend in C#

ERROR in node_modules/angular-fusioncharts/src/fusioncharts.component.d.ts.FusionChartsComponent.html(2,10): : Property 'containerId' does not exist on type 'FusionChartsComponent node_modules/angular-fusioncharts/src/fusioncharts.component.d.ts.FusionChartsComponent.html(2,10) 中的错误::“FusionChartsComponent”类型上不存在属性“containerId”

Below is the code for my node modules fusioncharts.component.d.ts file I have tried so many things to resolve this issue like updating npm, updating @angular-devkit/build-angular , npm I nyc, updating tslint file and so on but haven't found any solution for my problem下面是我的节点模块fusioncharts.component.d.ts文件的代码我尝试了很多方法来解决这个问题,例如更新 npm、更新@angular-devkit/build-angular 、npm I nyc、更新tslint文件等等但还没有找到任何解决我的问题的方法

import { ElementRef, OnInit, OnChanges, DoCheck, AfterViewInit, OnDestroy, KeyValueDiffers, NgZone, EventEmitter } from '@angular/core';
import { FusionChartsService } from './fusioncharts.service';
import FusionChartsEvent from '../interfaces/FusionChartsEvent';
import FusionChartInstance from '../interfaces/FusionChartInstance';
declare class FusionChartsComponent implements OnInit, OnChanges, DoCheck, AfterViewInit, OnDestroy{
    ngOnDestroy(): void;
    ngAfterViewInit(): void;
    ngDoCheck(): void;
    ngOnInit(): void;
    ngOnChanges(changes: import("@angular/core").SimpleChanges): void;

    private differs;
    private zone;
    chartObj: any;
    placeholder: string;
    dataSource: any;
    type: string;
    id: string;
    width: string;
    height: string;
    renderAt: string;
    dataFormat: string;
    events: string;
    link: string;
    showDataLoadingMessage: boolean;
    showChartLoadingMessage: boolean;
    baseChartMessageFont: string;
    baseChartMessageFontSize: string;
    baseChartMessageColor: string;
    dataLoadStartMessage: string;
    dataLoadErrorMessage: string;
    dataInvalidMessage: string;
    dataEmptyMessage: string;
    typeNotSupportedMessage: string;
    loadMessage: string;
    renderErrorMessage: string;
    containerBackgroundColor: string;
    containerBackgroundOpacity: string;
    containerClassName: string;
    baseChartMessageImageHAlign: string;
    baseChartMessageImageVAlign: string;
    baseChartMessageImageAlpha: number;
    baseChartMessageImageScale: number;
    typeNotSupportedMessageImageHAlign: string;
    typeNotSupportedMessageImageVAlign: string;
    typeNotSupportedMessageImageAlpha: number;
    typeNotSupportedMessageImageScale: number;
    dataLoadErrorMessageImageHAlign: string;
    dataLoadErrorMessageImageVAlign: string;
    dataLoadErrorMessageImageAlpha: number;
    dataLoadErrorMessageImageScale: number;
    dataLoadStartMessageImageHAlign: string;
    dataLoadStartMessageImageVAlign: string;
    dataLoadStartMessageImageAlpha: number;
    dataLoadStartMessageImageScale: number;
    dataInvalidMessageImageHAlign: string;
    dataInvalidMessageImageVAlign: string;
    dataInvalidMessageImageAlpha: number;
    dataInvalidMessageImageScale: number;
    dataEmptyMessageImageHAlign: string;
    dataEmptyMessageImageVAlign: string;
    dataEmptyMessageImageAlpha: number;
    dataEmptyMessageImageScale: number;
    renderErrorMessageImageHAlign: string;
    renderErrorMessageImageVAlign: string;
}

"containerId" property is missing in your FusionChartsComponent ts file. FusionChartsComponent ts 文件中缺少“containerId”属性。 Try declaring public property for the same.尝试声明相同的公共财产。 Can you please share your FusionChartsComponent.html file你能分享你的 FusionChartsComponent.html 文件吗

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM