<?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 Re: ACA library can't be built with dependency to ACA-shared in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40711#M17076</link>
    <description>&lt;P&gt;I was also facing the same issue in the ACA 1.11.0 version project while building my custom extension which was having an import statement "&lt;SPAN&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/67382"&gt;@alfresco&lt;/A&gt;/aca-shared/store&lt;/SPAN&gt;".&lt;BR /&gt;&lt;BR /&gt;In ACA 1.11.0 "aca-shared" is available as an extension project inside the "projects" folder of the main project instead of npm dependency registered in package.json file. Since it is an extension project so it was having an entry in the "path" object in "tsconfig.json" of the main project, as follows:&lt;/P&gt;&lt;PRE&gt;"@alfresco/aca-shared": [&lt;BR /&gt;      "projects/aca-shared/src/public-api.ts"&lt;BR /&gt;],&lt;BR /&gt;"@alfresco/aca-shared/store": [&lt;BR /&gt;      "projects/aca-shared/store/src/public-api.ts"&lt;BR /&gt;],&lt;BR /&gt;"@alfresco/aca-shared/rules": [&lt;BR /&gt;      "projects/aca-shared/rules/src/public-api.ts"&lt;BR /&gt;],&lt;/PRE&gt;&lt;P&gt;From the custom extension, I'll not have access to the specified static path, so I have removed the above 3 entries &amp;amp; added the following 2 entries of the "@alfresco/aca-shared" as follows:&lt;/P&gt;&lt;PRE&gt;"@alfresco/aca-shared": [
    "dist/@alfresco/aca-shared"
],
"@alfresco/aca-shared/*": [
    "dist/@alfresco/aca-shared/*"
],&lt;/PRE&gt;&lt;P&gt;After the above change, I have tried to build my custom extension which was successfully built with the "@alfresco/aca-shared" import. I hope this maybe work in your case too.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Since "@alfrescco/aca-shared" is an extension so must build it before building your extension so that inside dist it has the "@alfresco/aca-shared" folders with their respective built code ready to use in any extension project.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 11:22:29 GMT</pubDate>
    <dc:creator>khushbu</dc:creator>
    <dc:date>2020-07-30T11:22:29Z</dc:date>
    <item>
      <title>ACA library can't be built with dependency to ACA-shared</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40707#M17072</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have created my custom library in ACA project (I used this version of ACA:&amp;nbsp;&lt;A href="https://codeload.github.com/Alfresco/alfresco-content-app/zip/1.11.0" target="_blank" rel="noopener nofollow noreferrer"&gt;alfresco-content-app-1.11.0.zip&lt;/A&gt;) by following this tutorial:&lt;BR /&gt;&lt;A href="https://alfresco-content-app.netlify.app/#/extending/redistributable-libraries" target="_blank" rel="noopener nofollow noreferrer"&gt;https://alfresco-content-app.netlify.app/#/extending/redistributable-libraries&lt;/A&gt;&lt;BR /&gt;In my library I have created a component and in this component I have imported and used some stuff from alfresco/aca-shared library like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AppStore&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;getHeaderColor&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'@alfresco/aca-shared/store'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I try to build my library with this import I get this error:&lt;BR /&gt;BUILD ERROR&lt;BR /&gt;Could not resolve entry (C:\PATH_TO_PROJECT\dist\my_custom_library\esm2015\my_custom_library.js)&lt;BR /&gt;Error: Could not resolve entry (C:\PATH_TO_PROJECT\dist\my_custom_library\esm2015\my_custom_library.js)&lt;BR /&gt;at error (C:\PATH_TO_PROJECT\node_modules\rollup\dist\rollup.js:3460:30)&lt;BR /&gt;at C:\PATH_TO_PROJECT\node_modules\rollup\dist\rollup.js:21474:17&lt;BR /&gt;at async Promise.all (index 0)&lt;BR /&gt;&lt;BR /&gt;If I remove the import I am able to build the library normally. Am I doing something wrong? Do I need to do something else to&amp;nbsp; import the aca-shared library into my custom library?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jul 2020 11:19:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40707#M17072</guid>
      <dc:creator>lhobza</dc:creator>
      <dc:date>2020-07-01T11:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: ACA library can't be built with dependency to ACA-shared</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40708#M17073</link>
      <description>&lt;P&gt;Can you please provide some example project to reproduce the issue? You can either link the .zip (without ".git" and "node_modules" folders) or create a github repo with that? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 11:32:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40708#M17073</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2020-07-01T11:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: ACA library can't be built with dependency to ACA-shared</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40709#M17074</link>
      <description>&lt;P&gt;When I try to reproduce it on a new project I get a different error:&amp;nbsp;&lt;BR /&gt;BUILD ERROR&lt;BR /&gt;Error during template compile of 'SharedStoreModule'&lt;BR /&gt;Function calls are not supported in decorators but 'EffectsModule' was called.&lt;BR /&gt;&lt;BR /&gt;Here is the zip file with the clean aca 1.11.0 and custom extension which is giving me this error when I try to run this build script npm run build:my-extension&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/nqijoc28yutas0g/alfresco-content-app-1.11.0.zip?dl=0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/s/nqijoc28yutas0g/alfresco-content-app-1.11.0.zip?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 13:32:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40709#M17074</guid>
      <dc:creator>lhobza</dc:creator>
      <dc:date>2020-07-01T13:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: ACA library can't be built with dependency to ACA-shared</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40710#M17075</link>
      <description>&lt;P&gt;I am able to reproduce this issue. We will try to fix it soon.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 14:39:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40710#M17075</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2020-07-01T14:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: ACA library can't be built with dependency to ACA-shared</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40711#M17076</link>
      <description>&lt;P&gt;I was also facing the same issue in the ACA 1.11.0 version project while building my custom extension which was having an import statement "&lt;SPAN&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/67382"&gt;@alfresco&lt;/A&gt;/aca-shared/store&lt;/SPAN&gt;".&lt;BR /&gt;&lt;BR /&gt;In ACA 1.11.0 "aca-shared" is available as an extension project inside the "projects" folder of the main project instead of npm dependency registered in package.json file. Since it is an extension project so it was having an entry in the "path" object in "tsconfig.json" of the main project, as follows:&lt;/P&gt;&lt;PRE&gt;"@alfresco/aca-shared": [&lt;BR /&gt;      "projects/aca-shared/src/public-api.ts"&lt;BR /&gt;],&lt;BR /&gt;"@alfresco/aca-shared/store": [&lt;BR /&gt;      "projects/aca-shared/store/src/public-api.ts"&lt;BR /&gt;],&lt;BR /&gt;"@alfresco/aca-shared/rules": [&lt;BR /&gt;      "projects/aca-shared/rules/src/public-api.ts"&lt;BR /&gt;],&lt;/PRE&gt;&lt;P&gt;From the custom extension, I'll not have access to the specified static path, so I have removed the above 3 entries &amp;amp; added the following 2 entries of the "@alfresco/aca-shared" as follows:&lt;/P&gt;&lt;PRE&gt;"@alfresco/aca-shared": [
    "dist/@alfresco/aca-shared"
],
"@alfresco/aca-shared/*": [
    "dist/@alfresco/aca-shared/*"
],&lt;/PRE&gt;&lt;P&gt;After the above change, I have tried to build my custom extension which was successfully built with the "@alfresco/aca-shared" import. I hope this maybe work in your case too.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Since "@alfrescco/aca-shared" is an extension so must build it before building your extension so that inside dist it has the "@alfresco/aca-shared" folders with their respective built code ready to use in any extension project.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 11:22:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aca-library-can-t-be-built-with-dependency-to-aca-shared/m-p/40711#M17076</guid>
      <dc:creator>khushbu</dc:creator>
      <dc:date>2020-07-30T11:22:29Z</dc:date>
    </item>
  </channel>
</rss>

