<?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: Integrate adf in existing project in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22474#M9827</link>
    <description>&lt;P&gt;no one has ever had the problem ? Is my config ok ? I don't find any tuto that shows how to add adf in existing app. Thank you in advance !&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 15:02:43 GMT</pubDate>
    <dc:creator>anakin98000</dc:creator>
    <dc:date>2024-09-19T15:02:43Z</dc:date>
    <item>
      <title>Integrate adf in existing project</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22473#M9826</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;this is what i try to add alfresco ecm only in existing angular 15 :&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;package.json:&lt;/STRONG&gt;&lt;BR /&gt;"dependencies": {&lt;BR /&gt;"@alfresco/adf-content-services": "^7.0.0-alpha.2",&amp;nbsp; &amp;nbsp; // works with angular 15&lt;BR /&gt;"@alfresco/adf-core": "^7.0.0-alpha.2",&lt;BR /&gt;"@alfresco/adf-extensions": "^7.0.0-alpha.2",&lt;BR /&gt;"@alfresco/js-api": "^8.0.0-alpha.2",&lt;BR /&gt;...&lt;BR /&gt;&lt;STRONG&gt;app.config.json:&lt;/STRONG&gt;&lt;BR /&gt;"{&lt;BR /&gt;"ecmHost": "&lt;A href="https://localhost:8443/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://localhost:8443&lt;/A&gt;",&lt;BR /&gt;"providers": "ECM"&lt;BR /&gt;},&lt;BR /&gt;"application": {&lt;BR /&gt;"name": "MyApp"&lt;BR /&gt;},&lt;BR /&gt;"languages": [&lt;BR /&gt;{&lt;BR /&gt;"key": "en",&lt;BR /&gt;"label": "English"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"key": "fr",&lt;BR /&gt;"label": "French"&lt;BR /&gt;}&lt;BR /&gt;],"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proxy.conf&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:&lt;BR /&gt;"module.exports = {&lt;BR /&gt;"/alfresco": {&lt;BR /&gt;target: "&lt;A href="https://localhost:8443/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://localhost:8443&lt;/A&gt;",&lt;BR /&gt;secure: false,&lt;BR /&gt;changeOrigin: true,&lt;BR /&gt;// workaround for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://hyland.atlassian.net/browse/REPO-2260" target="_blank" rel="noopener noreferrer nofollow"&gt;REPO-2260&lt;/A&gt;&lt;BR /&gt;onProxyRes: function(proxyRes, req, res) {&lt;BR /&gt;const header = proxyRes.headers['www-authenticate'];&lt;BR /&gt;if (header &amp;amp;&amp;amp; header.startsWith('Basic')) {&lt;BR /&gt;proxyRes.headers['www-authenticate'] = 'x' + header;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;logLevel: 'debug'&lt;BR /&gt;};"&lt;BR /&gt;I have added a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;AdfModule&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file that I have imported in my app.module file :&lt;/P&gt;&lt;P&gt;"import { NgModule } from '@angular/core';&lt;BR /&gt;import {CoreModule, TRANSLATION_PROVIDER, TranslateLoaderService, AppConfigService} from '@alfresco/adf-core';&lt;BR /&gt;import { ContentModule } from '@alfresco/adf-content-services';&lt;BR /&gt;import {TranslateLoader, TranslateModule} from "@ngx-translate/core";&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://github.com/NgModule" target="_blank" rel="noopener nofollow noreferrer"&gt;@NgModule&lt;/A&gt;({&lt;BR /&gt;imports: [&lt;BR /&gt;// ADF modules&lt;BR /&gt;CoreModule.forRoot(),&lt;BR /&gt;ContentModule.forRoot(),&lt;BR /&gt;TranslateModule.forRoot({&lt;BR /&gt;loader: { provide: TranslateLoader, useClass: TranslateLoaderService }&lt;BR /&gt;})&lt;BR /&gt;],&lt;BR /&gt;providers: [&lt;BR /&gt;AppConfigService,&lt;BR /&gt;{&lt;BR /&gt;provide: TRANSLATION_PROVIDER,&lt;BR /&gt;multi: true,&lt;BR /&gt;useValue: {&lt;BR /&gt;name: 'app',&lt;BR /&gt;source: 'assets/i18n'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;})&lt;BR /&gt;export class AdfModule {}&lt;BR /&gt;"&lt;BR /&gt;And in angular.json:&lt;/P&gt;&lt;P&gt;""assets": [&lt;BR /&gt;"src/favicon.ico",&lt;BR /&gt;"src/assets",&lt;BR /&gt;"src/app.config.json",&lt;BR /&gt;{&lt;BR /&gt;"glob": "&lt;STRONG&gt;/*",&lt;BR /&gt;"input": "resources",&lt;BR /&gt;"output": "/resources"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"glob": "&lt;/STRONG&gt;/&lt;EM&gt;",&lt;BR /&gt;"input": "node_modules/@alfresco/adf-core/prebuilt-themes",&lt;BR /&gt;"output": "/assets/prebuilt-themes"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"glob": "**/&lt;/EM&gt;",&lt;BR /&gt;"input": "node_modules/@alfresco/adf-core/bundles/assets",&lt;BR /&gt;"output": "/assets"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"glob": "**/*",&lt;BR /&gt;"input": "node_modules/@alfresco/adf-content-services/bundles/assets",&lt;BR /&gt;"output": "/assets"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"glob": "pdf.worker.js",&lt;BR /&gt;"input": "node_modules/pdfjs-dist/build",&lt;BR /&gt;"output": "/"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"glob": "pdf.worker.min.js",&lt;BR /&gt;"input": "node_modules/pdfjs-dist/build",&lt;BR /&gt;"output": "/"&lt;BR /&gt;}&lt;BR /&gt;],"&lt;/P&gt;&lt;P&gt;But I have an injection issue : "NullInjectorError: No provider for r!"&lt;BR /&gt;I think by checking code that it comes from AuthenticationService in adf-core.mjs&lt;/P&gt;&lt;P&gt;What is missing ?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:17:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22473#M9826</guid>
      <dc:creator>anakin98000</dc:creator>
      <dc:date>2024-09-16T12:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate adf in existing project</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22474#M9827</link>
      <description>&lt;P&gt;no one has ever had the problem ? Is my config ok ? I don't find any tuto that shows how to add adf in existing app. Thank you in advance !&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:02:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22474#M9827</guid>
      <dc:creator>anakin98000</dc:creator>
      <dc:date>2024-09-19T15:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate adf in existing project</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22475#M9828</link>
      <description>&lt;P&gt;Here is the original error:&lt;/P&gt;&lt;P&gt;ERROR NullInjectorError: R3InjectorError(AppModule)[ApplicationInitStatus -&amp;gt; InjectionToken Application Initializer -&amp;gt; [object Object] -&amp;gt; VersionCompatibilityService -&amp;gt; DiscoveryApiService -&amp;gt; AuthenticationService -&amp;gt; RedirectAuthService -&amp;gt; RedirectAuthService -&amp;gt; RedirectAuthService]:&lt;BR /&gt;NullInjectorError: No provider for RedirectAuthService!&lt;BR /&gt;at NullInjector.get (core.mjs:7493:27)&lt;BR /&gt;at R3Injector.get (core.mjs:7914:33)&lt;BR /&gt;at R3Injector.get (core.mjs:7914:33)&lt;BR /&gt;at R3Injector.get (core.mjs:7914:33)&lt;BR /&gt;at injectInjectorOnly (core.mjs:618:33)&lt;BR /&gt;at Module.ɵɵinject (core.mjs:622:60)&lt;BR /&gt;at Object.AuthenticationService_Factory [as factory] (adf-core.mjs:135:114)&lt;BR /&gt;at R3Injector.hydrate (core.mjs:8015:35)&lt;BR /&gt;at R3Injector.get (core.mjs:7903:33)&lt;BR /&gt;at injectInjectorOnly (core.mjs:618:33)&lt;BR /&gt;at Module.ɵɵinject (core.mjs:622:60)&lt;BR /&gt;at Object.DiscoveryApiService_Factory [as factory] (adf-content-services.mjs:104:108)&lt;BR /&gt;at R3Injector.hydrate (core.mjs:8015:35)&lt;BR /&gt;at R3Injector.get (core.mjs:7903:33)&lt;BR /&gt;at injectInjectorOnly (core.mjs:618:33)&lt;BR /&gt;at Module.ɵɵinject (core.mjs:622:60)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 16:01:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22475#M9828</guid>
      <dc:creator>anakin98000</dc:creator>
      <dc:date>2024-09-19T16:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate adf in existing project</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22476#M9829</link>
      <description>&lt;P&gt;OK,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AuthModule.&lt;SPAN&gt;forRoot&lt;/SPAN&gt;({ &lt;SPAN&gt;useHash&lt;/SPAN&gt;: &lt;SPAN&gt;true &lt;/SPAN&gt;}), &lt;/PRE&gt;&lt;P&gt;was missing&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 16:10:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/integrate-adf-in-existing-project/m-p/22476#M9829</guid>
      <dc:creator>anakin98000</dc:creator>
      <dc:date>2024-09-19T16:10:45Z</dc:date>
    </item>
  </channel>
</rss>

