Using ng2-alfresco-viewer for document viewer

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 07:56 AM
I created a sample application using this URL
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.
Labels:
0 REPLIES 0
