<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rendering shortcut not working]]></title><description><![CDATA[<p>Hello, I have a use case where we need to render reports using the rendering shortcut as described here <a href="https://jsreport.net/learn/adapting-jsreport#using-rendering-shortcut" rel="nofollow">https://jsreport.net/learn/adapting-jsreport#using-rendering-shortcut</a></p>
<p>However, when trying to run this, i get the error: &quot;Error: Not initialized, you need to call jsreport.init().then before rendering&quot;.<br />
It is calling the init() function which we are trying to avoid.</p>
<p>The code looks as follows:</p>
<pre><code class="language-js">const jsreport = require('jsreport');

...

 const out = await jsreport.render({
      template: {
        shortid: 'q~xVpyT',
        engine: 'handlebars',
        recipe: 'chrome-pdf'
      },
      data: {
        ...data
      },
      options: { language: languageCode }
    });
</code></pre>
<p>If anybody could point out what I'm doing wrong here I'd very much appreciate it!</p>
]]></description><link>https://forum.jsreport.net/topic/2143/rendering-shortcut-not-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 13:25:50 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2143.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Oct 2021 08:37:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rendering shortcut not working on Invalid Date]]></title><description><![CDATA[<p>Hello, I have a use case where we need to render reports using the rendering shortcut as described here <a href="https://jsreport.net/learn/adapting-jsreport#using-rendering-shortcut" rel="nofollow">https://jsreport.net/learn/adapting-jsreport#using-rendering-shortcut</a></p>
<p>However, when trying to run this, i get the error: &quot;Error: Not initialized, you need to call jsreport.init().then before rendering&quot;.<br />
It is calling the init() function which we are trying to avoid.</p>
<p>The code looks as follows:</p>
<pre><code class="language-js">const jsreport = require('jsreport');

...

 const out = await jsreport.render({
      template: {
        shortid: 'q~xVpyT',
        engine: 'handlebars',
        recipe: 'chrome-pdf'
      },
      data: {
        ...data
      },
      options: { language: languageCode }
    });
</code></pre>
<p>If anybody could point out what I'm doing wrong here I'd very much appreciate it!</p>
]]></description><link>https://forum.jsreport.net/post/9384</link><guid isPermaLink="true">https://forum.jsreport.net/post/9384</guid><dc:creator><![CDATA[zoidbergSF]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Rendering shortcut not working on Invalid Date]]></title><description><![CDATA[<p>I'm not able to replicate this. I tried this code:</p>
<pre><code>const jsreport = require('jsreport');

async function run() {
    const out = await jsreport.render({
        template: {
          content: 'hello',
          engine: 'handlebars',
          recipe: 'chrome-pdf'
        }     
  });
}


run().then(() =&gt; console.log('done')).catch(console.error);

</code></pre>
]]></description><link>https://forum.jsreport.net/post/9391</link><guid isPermaLink="true">https://forum.jsreport.net/post/9391</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>