cancel
Showing results for 
Search instead for 
Did you mean: 

Using ng2-alfresco-viewer for document viewer

rahulpoddar
Champ in-the-making
Champ in-the-making

I created a sample application using this URL

https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application/#:~:text=Create%....

I am connecting to local service deployed with docker for ACS

I am trying to use ng2-alfresco-viewer for document view / redaction / print

For this I added following

1.  "ng2-alfresco-viewer": "1.9.0" to package.json

2.  In the app.module.ts added 

import { ViewerModule } from 'ng2-alfresco-viewer';
3. After this ran npm install
 
4. Ran npm start
While running I get below error

./src/main.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Emit attempted before Angular Webpack plugin initialization.

Error: Failed to initialize Angular compilation - Cannot read properties of null (reading 'fileName')

Need help to resolve this.

0 REPLIES 0