ADF on a existing angular project

cancel
Showing results for 
Search instead for 
Did you mean: 
danny36
Member II

ADF on a existing angular project

Hi,

I'm try to usa alfreso adf componente and services on my existing angular project but I have many many problem with imports and it's not possible to compiling and run my application.

There is a tutorial? thanks.

 

 

3 Replies
EddieMay
Community Manager
Community Manager

Re: ADF on a existing angular project

Hi @danny36 

You may find this thread useful.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
danny36
Member II

Re: ADF on a existing angular project

Error: The target entry-point "@alfresco/adf-content-services" has missing dependencies:
- @angular/material/button
- @angular/material/card
- @angular/material/checkbox
- @angular/material/chips
- @angular/material/core
- @angular/material/datepicker
- @angular/material/dialog
- @angular/material/expansion
- @angular/material/icon
- @angular/material/input
- @angular/material/list
- @angular/material/menu
- @angular/material/progress-bar
- @angular/material/progress-spinner
- @angular/material/radio
- @angular/material/select
- @angular/material/slide-toggle
- @angular/material/slider
- @angular/material/tree
- @angular/material/badge
- @alfresco/js-api
- @alfresco/adf-core
- moment-es6
- @angular/flex-layout
- @angular/cdk/a11y
- @mat-datetimepicker/core
- @mat-datetimepicker/moment
- @ngx-translate/core
- @angular/cdk/tree
- @angular/material/table
- @angular/material/tooltip
- moment
- @angular/cdk/collections

danny36
Member II

Re: ADF on a existing angular project

after install alla dependecy I give this two errors on fresh angular project (ng new myapp) :

Error: node_modules/@alfresco/adf-core/viewer/components/pdf-viewer.component.d.ts:22:10 - error TS2305: Module '"../../../../pdfjs-dist/types/pdf"' has no exported member 'PDFDocumentProxy'.

22 import { PDFDocumentProxy, PDFSource } from 'pdfjs-dist';
~~~~~~~~~~~~~~~~


Error: node_modules/@alfresco/adf-core/viewer/components/pdf-viewer.component.d.ts:22:28 - error TS2305: Module '"../../../../pdfjs-dist/types/pdf"' has no exported member 'PDFSource'.

22 import { PDFDocumentProxy, PDFSource } from 'pdfjs-dist';
~~~~~~~~~