<?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 Can Nebula work with a Server Side Rendered Frontend Application? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2503100#M21764</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm working on trying to embed native qlik charts using nebula into a Angular 19 SSR (server side rendered) frontend application.&lt;/P&gt;
&lt;P&gt;I'm aware of a few gotcha's due to nebula and the underlying picasso requiring browser api's, so I've tried to avoid that issue by only importing the embed and a sample bar chart dynamically after the client side has rendered.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  async ngOnInit() {
    if (isPlatformBrowser(this.platformId) &amp;amp;&amp;amp; this.qlikApp) {
      const { embed } = await import('@nebula.js/stardust');
      const barChart = await import('@nebula.js/sn-bar-chart');
  
      const nuked = embed(this.qlikApp, {
        types: [
          {
            name: 'bar-chart',
            load: () =&amp;gt; Promise.resolve(barChart)
          }
        ]
      });
      const element = document.getElementById('chart-container');
      if (element) {
        nuked.render({
          element: element,
          id: 'PmmueD',
        });
      }
    }
  }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i get this error when testing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jw25_0-1737992051532.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176911iA1BC7FBE19D2B7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jw25_0-1737992051532.png" alt="jw25_0-1737992051532.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to get nebula to work on a SSR frontend application?&lt;/P&gt;
&lt;P&gt;Otherwise I'll fall back to&amp;nbsp;using enigma.js and use another charting library like d3 to generate charts, as I am actively using enigma in the application, and know that d3 does work in SSR frontend applications.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jo&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 15:39:35 GMT</pubDate>
    <dc:creator>jw25</dc:creator>
    <dc:date>2025-01-27T15:39:35Z</dc:date>
    <item>
      <title>Can Nebula work with a Server Side Rendered Frontend Application?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2503100#M21764</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm working on trying to embed native qlik charts using nebula into a Angular 19 SSR (server side rendered) frontend application.&lt;/P&gt;
&lt;P&gt;I'm aware of a few gotcha's due to nebula and the underlying picasso requiring browser api's, so I've tried to avoid that issue by only importing the embed and a sample bar chart dynamically after the client side has rendered.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  async ngOnInit() {
    if (isPlatformBrowser(this.platformId) &amp;amp;&amp;amp; this.qlikApp) {
      const { embed } = await import('@nebula.js/stardust');
      const barChart = await import('@nebula.js/sn-bar-chart');
  
      const nuked = embed(this.qlikApp, {
        types: [
          {
            name: 'bar-chart',
            load: () =&amp;gt; Promise.resolve(barChart)
          }
        ]
      });
      const element = document.getElementById('chart-container');
      if (element) {
        nuked.render({
          element: element,
          id: 'PmmueD',
        });
      }
    }
  }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i get this error when testing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jw25_0-1737992051532.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176911iA1BC7FBE19D2B7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jw25_0-1737992051532.png" alt="jw25_0-1737992051532.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to get nebula to work on a SSR frontend application?&lt;/P&gt;
&lt;P&gt;Otherwise I'll fall back to&amp;nbsp;using enigma.js and use another charting library like d3 to generate charts, as I am actively using enigma in the application, and know that d3 does work in SSR frontend applications.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 15:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2503100#M21764</guid>
      <dc:creator>jw25</dc:creator>
      <dc:date>2025-01-27T15:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can Nebula work with a Server Side Rendered Frontend Application?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2503347#M21771</link>
      <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/316973"&gt;@jw25&lt;/a&gt;&lt;/SPAN&gt; it should work but as recommended pratice, please use &lt;A href="https://qlik.dev/embed/qlik-embed/" target="_blank"&gt;qlik-embed&lt;/A&gt; for embedding chart in external web app. nebula is our library for creating extension and not for embedding.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2503347#M21771</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-01-28T15:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can Nebula work with a Server Side Rendered Frontend Application?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2504167#M21788</link>
      <description>&lt;P&gt;Hi Alex&lt;/P&gt;
&lt;P&gt;I've had a test with qlik-embed, I can get it working in an client side rendered angular app, but not in an server side rendered angular app.&lt;BR /&gt;Based on how qlik-embed renders stuff requiring the browser api's, I think it's relatively safe to say that qlik-embed may not work (perhaps not at all, but at least not easily) with a server side renderd angular app.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Jo&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 11:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2504167#M21788</guid>
      <dc:creator>jw25</dc:creator>
      <dc:date>2025-02-03T11:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can Nebula work with a Server Side Rendered Frontend Application?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2504179#M21790</link>
      <description>&lt;P&gt;Hey, qlik-embed is a front-end library and makes sense that is not working on server side. This is the same for all our library, nebula.js and Capability APIs, they only work on front-end.&lt;/P&gt;
&lt;P&gt;If you are building a server side app you should get data from a Qlik app and then render with your library, you cannot leverage Qlik' front-end. For getting data from Qlik in the backend I can suggest to use our &lt;A href="https://qlik.dev/toolkits/qlik-api/" target="_blank"&gt;@qlik/api&lt;/A&gt; library.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 13:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-Nebula-work-with-a-Server-Side-Rendered-Frontend-Application/m-p/2504179#M21790</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-02-03T13:27:57Z</dc:date>
    </item>
  </channel>
</rss>

