<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Why Liferay don't  recognize jspdf</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120469473" />
  <subtitle>Why Liferay don't  recognize jspdf</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120469473</id>
  <updated>2026-04-06T05:35:50Z</updated>
  <dc:date>2026-04-06T05:35:50Z</dc:date>
  <entry>
    <title>RE: RE: Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120475868" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120475868</id>
    <updated>2020-11-27T13:27:50Z</updated>
    <published>2020-11-27T13:27:50Z</published>
    <summary type="html">&lt;p&gt;Ok, replying to myself since I can't reply to Andres Toros post.&lt;/p&gt;
&lt;p&gt;I tried it now myself with jsPDF and adapt. I see the problem. The
  js-adapt code assumes that there will be only two chunks. It loads
  main.chunk and 2.chunk.&lt;/p&gt;
&lt;p&gt;BUT when you add jsPDF, you get six chunks and the chunk files 3-6
  are not requested in the combo call. -&amp;gt; Can't work.&lt;/p&gt;
&lt;p&gt;I actually have no idea how to fix this. You could try to ask on
  github, maybe they can tell you what you could do:&lt;/p&gt;
&lt;p&gt;https://github.com/liferay/liferay-js-toolkit&lt;/p&gt;</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-11-27T13:27:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120473145" />
    <author>
      <name>Andres Toro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120473145</id>
    <updated>2020-11-26T16:08:05Z</updated>
    <published>2020-11-26T13:32:14Z</published>
    <summary type="html">&lt;p&gt;Yes, I see this:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/2020_11_26_08_28_04_Home_Liferay.jpg/5210e39b-23d7-6f60-5353-725ec9eee7c1?t=1606397326406&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt;But if I created the app (&amp;quot;my-app3) whit the liferay generator,
  the error is the next:&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/2020_11_26_08_31_08_Home_Liferay3.jpg/167c92fc-6016-7957-fa11-eee1f4947511?t=1606397515359&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Andres Toro</dc:creator>
    <dc:date>2020-11-26T13:32:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120472732" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120472732</id>
    <updated>2020-11-26T11:42:54Z</updated>
    <published>2020-11-26T11:42:54Z</published>
    <summary type="html">&lt;p&gt;You could try to check in the network tab. Search for
  &amp;quot;my-app&amp;quot; (or whatever your module is called). You should see
  some requests like these:&lt;/p&gt;
&lt;p&gt;http://localhost:8080/o/js_resolve_modules?modules=my-app@0.1.0&lt;/p&gt;
&lt;p&gt;http://localhost:8080/combo/?.../o/js/resolved-module/my-app@0.1.0/static/js/runtime-main.js&amp;amp;/o/js/resolved-module/my-app@0.1.0/static/js/2.chunk.js&amp;amp;/o/js/resolved-module/my-app@0.1.0/static/js/main.chunk.js&amp;amp;/o/js/resolved-module/my-app@0.1.0/adapt-rt.js&amp;amp;/o/js/resolved-module/my-app@0.1.0/index.js&lt;/p&gt;
&lt;p&gt;In general, it is really hard to tell why it does not work for you.
  It works for me.&lt;/p&gt;
&lt;p&gt;Did you change anything on the page or try start from scratch? Create
  react app, adapt, deploy? Which Liferay version do you use?&lt;/p&gt;</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-11-26T11:42:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120470123" />
    <author>
      <name>Andres Toro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120470123</id>
    <updated>2020-11-25T21:04:41Z</updated>
    <published>2020-11-25T14:57:24Z</published>
    <summary type="html">&lt;p&gt;Hi Christoph Rabel for you answer.&lt;/p&gt;
&lt;p&gt;I used liferay-js:adapt for my project&lt;/p&gt;
&lt;p&gt;I don't see any error in the browser console&lt;/p&gt;
&lt;p&gt;Is the javascript with the react app even loaded? -&amp;gt; How can I
  verify that?&lt;/p&gt;</summary>
    <dc:creator>Andres Toro</dc:creator>
    <dc:date>2020-11-25T14:57:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120470119" />
    <author>
      <name>Andres Toro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120470119</id>
    <updated>2020-11-25T21:04:41Z</updated>
    <published>2020-11-25T14:56:48Z</published>
    <summary type="html">&lt;p&gt;Hi Christoph Rabel for you answer.&lt;/p&gt;
&lt;p&gt;I used liferay-js:adapt for my project&lt;/p&gt;
&lt;p&gt;I don't see any error in the browser console&lt;/p&gt;
&lt;p&gt;Is the javascript with the react app even loaded? -&amp;gt; How can I
  verify that?&lt;/p&gt;</summary>
    <dc:creator>Andres Toro</dc:creator>
    <dc:date>2020-11-25T14:56:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120469836" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120469836</id>
    <updated>2020-11-25T09:03:54Z</updated>
    <published>2020-11-25T09:03:53Z</published>
    <summary type="html">&lt;p&gt;Is the javascript with the react app even loaded? Did you check in
  the browser developer tools? Do you see any errors in the browser console?&lt;/p&gt;
&lt;p&gt;What is your project setup? How did you create it? Did you use the generator?&lt;/p&gt;
&lt;p&gt;https://github.com/liferay/liferay-js-toolkit/wiki/How-to-use-generator-liferay-js&lt;/p&gt;
&lt;p&gt;Or did you use liferay-js:adapt to package your widget?&lt;/p&gt;
&lt;p&gt;https://help.liferay.com/hc/en-us/articles/360035467712-Adapting-Existing-Apps-to-Run-on-Liferay-DXP&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-11-25T09:03:53Z</dc:date>
  </entry>
  <entry>
    <title>Why Liferay don't  recognize jspdf</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120469472" />
    <author>
      <name>Andres Toro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120469472</id>
    <updated>2020-11-25T07:24:07Z</updated>
    <published>2020-11-25T03:17:08Z</published>
    <summary type="html">&lt;p&gt;I'm trying to deploy my aplication React in Liferay, but when is
  added like widget nothing happens.&lt;/p&gt;
&lt;p&gt;Neither happens errors, but if I run the aplication with npm start,
  it works correctly&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/2020_11_24_22_13_51_Home_Liferay.jpg/daed351d-c9ee-5fc5-4bb1-bbc79e40a137?t=1606274092841&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Andres Toro</dc:creator>
    <dc:date>2020-11-25T03:17:08Z</dc:date>
  </entry>
</feed>
