<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using ng2-alfresco-viewer for document viewer in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/using-ng2-alfresco-viewer-for-document-viewer/m-p/17745#M7871</link>
    <description>&lt;P&gt;I created a sample application using this URL&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application/#:~:text=Create%20your%20first%20ADF%20application&amp;amp;text=Enter%20a%20name%20and%20choose,dependencies%20required%20for%20your%20application" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application/#:~:text=Create%20your%20first%20ADF%20application&amp;amp;text=Enter%20a%20name%20and%20choose,dependencies%20required%20for%20your%20application&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I am connecting to local service deployed with docker for ACS&lt;/P&gt;&lt;P&gt;I am trying to use&amp;nbsp;ng2-alfresco-viewer for document view / redaction / print&lt;/P&gt;&lt;P&gt;For this I added following&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"ng2-alfresco-viewer"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"1.9.0" to package.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp; In the app.module.ts added&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; { ViewerModule } &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'ng2-alfresco-viewer'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. After this ran npm install&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;4. Ran npm start&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;While running I get below error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;./src/main.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):&lt;BR /&gt;Error: Emit attempted before Angular Webpack plugin initialization.&lt;/P&gt;&lt;P&gt;Error: Failed to initialize Angular compilation - Cannot read properties of null (reading 'fileName')&lt;/P&gt;&lt;P&gt;Need help to resolve this.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 17 Feb 2023 12:56:57 GMT</pubDate>
    <dc:creator>rahulpoddar</dc:creator>
    <dc:date>2023-02-17T12:56:57Z</dc:date>
    <item>
      <title>Using ng2-alfresco-viewer for document viewer</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-ng2-alfresco-viewer-for-document-viewer/m-p/17745#M7871</link>
      <description>&lt;P&gt;I created a sample application using this URL&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application/#:~:text=Create%20your%20first%20ADF%20application&amp;amp;text=Enter%20a%20name%20and%20choose,dependencies%20required%20for%20your%20application" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application/#:~:text=Create%20your%20first%20ADF%20application&amp;amp;text=Enter%20a%20name%20and%20choose,dependencies%20required%20for%20your%20application&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I am connecting to local service deployed with docker for ACS&lt;/P&gt;&lt;P&gt;I am trying to use&amp;nbsp;ng2-alfresco-viewer for document view / redaction / print&lt;/P&gt;&lt;P&gt;For this I added following&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"ng2-alfresco-viewer"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"1.9.0" to package.json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp; In the app.module.ts added&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; { ViewerModule } &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'ng2-alfresco-viewer'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. After this ran npm install&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;4. Ran npm start&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;While running I get below error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;./src/main.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):&lt;BR /&gt;Error: Emit attempted before Angular Webpack plugin initialization.&lt;/P&gt;&lt;P&gt;Error: Failed to initialize Angular compilation - Cannot read properties of null (reading 'fileName')&lt;/P&gt;&lt;P&gt;Need help to resolve this.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:56:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-ng2-alfresco-viewer-for-document-viewer/m-p/17745#M7871</guid>
      <dc:creator>rahulpoddar</dc:creator>
      <dc:date>2023-02-17T12:56:57Z</dc:date>
    </item>
  </channel>
</rss>

