我试图在Angular 8中使用Active Reports,并且我完成了该网站上需要的所有步骤,https://www.grapecity.com/activereportsjs/docs/GettingStarted/QuickStart/QuickStart-Angular 当我尝试编译我的应用程序时,仍然出现此错误:
ERROR in The target entry-point "@grapecity/activereports-angular" has missing dependencies:
- rdlx-model
- @grapecity/ar-js-viewer/ExportPanel
- @grapecity/viewer-core
- @grapecity/ar-js-viewer
- @grapecity/viewer-core/features/search
这是我的代码:
在App.Component.Html中
gc-activereports-viewer [height]="height" [availableExports]="availableExports" (documentLoaded)="onDocumentLoaded($event)" #reportviewer></gc-activereports-viewer
在App.Module.Ts中
import { BrowserModule } from '@angular/platform-browser';<br />
import { NgModule } from '@angular/core';<br />
import { ActiveReportsModule } from '@grapecity/activereports-angular';
import { AppComponent } from './app.component';
@NgModule({<br />
declarations: [<br />
AppComponent<br />
],<br />
imports: [
BrowserModule,
ActiveReportsModule
],
providers: [],
bootstrap: [AppComponent]
})<br />
export class AppModule { }
在App.Component.Ts中
我使用了网站上完全相同的代码。(Grapecity.com)
其余步骤;
我曾经以管理员**npm install @grapecity/activereports-angular**
的身份运行此命令,但是它也没有起作用
** CMD页面显示此消息:
**<br /> D:\Angular Projects\Reporter-so> npm install @grapecity/activereports-angular<br />
npm WARN @grapecity/activereports-angular@1.1.0 requires a peer of @angular/common@^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.<br />
npm WARN @grapecity/activereports-angular@1.1.0 requires a peer of @angular/core@^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.<br />
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\fsevents):<br />
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
答案 0 :(得分:0)
将此代码写入tsconfig.app.json
"angularCompilerOptions": {
"enableIvy": false
}