Why Liferay don't recognize jspdfWhy Liferay don't recognize jspdfhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1204694732024-03-29T07:41:05Z2024-03-29T07:41:05ZRE: RE: Why Liferay don't recognize jspdfChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204758682020-11-27T13:27:50Z2020-11-27T13:27:50Z<p>Ok, replying to myself since I can't reply to Andres Toros post.</p>
<p>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.</p>
<p>BUT when you add jsPDF, you get six chunks and the chunk files 3-6
are not requested in the combo call. -> Can't work.</p>
<p>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:</p>
<p>https://github.com/liferay/liferay-js-toolkit</p>Christoph Rabel2020-11-27T13:27:50ZRE: RE: Why Liferay don't recognize jspdfAndres Torohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204731452020-11-26T16:08:05Z2020-11-26T13:32:14Z<p>Yes, I see this:</p>
<p> </p>
<p>
<img src="/documents/14/0/2020_11_26_08_28_04_Home_Liferay.jpg/5210e39b-23d7-6f60-5353-725ec9eee7c1?t=1606397326406&imagePreview=1" /></p>
<p>But if I created the app ("my-app3) whit the liferay generator,
the error is the next:</p>
<p>
<img src="/documents/14/0/2020_11_26_08_31_08_Home_Liferay3.jpg/167c92fc-6016-7957-fa11-eee1f4947511?t=1606397515359&imagePreview=1" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>Andres Toro2020-11-26T13:32:14ZRE: Why Liferay don't recognize jspdfChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204727322020-11-26T11:42:54Z2020-11-26T11:42:54Z<p>You could try to check in the network tab. Search for
"my-app" (or whatever your module is called). You should see
some requests like these:</p>
<p>http://localhost:8080/o/js_resolve_modules?modules=my-app@0.1.0</p>
<p>http://localhost:8080/combo/?.../o/js/resolved-module/my-app@0.1.0/static/js/runtime-main.js&/o/js/resolved-module/my-app@0.1.0/static/js/2.chunk.js&/o/js/resolved-module/my-app@0.1.0/static/js/main.chunk.js&/o/js/resolved-module/my-app@0.1.0/adapt-rt.js&/o/js/resolved-module/my-app@0.1.0/index.js</p>
<p>In general, it is really hard to tell why it does not work for you.
It works for me.</p>
<p>Did you change anything on the page or try start from scratch? Create
react app, adapt, deploy? Which Liferay version do you use?</p>Christoph Rabel2020-11-26T11:42:54ZRE: RE: Why Liferay don't recognize jspdfAndres Torohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204701232020-11-25T21:04:41Z2020-11-25T14:57:24Z<p>Hi Christoph Rabel for you answer.</p>
<p>I used liferay-js:adapt for my project</p>
<p>I don't see any error in the browser console</p>
<p>Is the javascript with the react app even loaded? -> How can I
verify that?</p>Andres Toro2020-11-25T14:57:24ZRE: Why Liferay don't recognize jspdfAndres Torohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204701192020-11-25T21:04:41Z2020-11-25T14:56:48Z<p>Hi Christoph Rabel for you answer.</p>
<p>I used liferay-js:adapt for my project</p>
<p>I don't see any error in the browser console</p>
<p>Is the javascript with the react app even loaded? -> How can I
verify that?</p>Andres Toro2020-11-25T14:56:48ZRE: Why Liferay don't recognize jspdfChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204698362020-11-25T09:03:54Z2020-11-25T09:03:53Z<p>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?</p>
<p>What is your project setup? How did you create it? Did you use the generator?</p>
<p>https://github.com/liferay/liferay-js-toolkit/wiki/How-to-use-generator-liferay-js</p>
<p>Or did you use liferay-js:adapt to package your widget?</p>
<p>https://help.liferay.com/hc/en-us/articles/360035467712-Adapting-Existing-Apps-to-Run-on-Liferay-DXP</p>
<p> </p>Christoph Rabel2020-11-25T09:03:53ZWhy Liferay don't recognize jspdfAndres Torohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204694722020-11-25T07:24:07Z2020-11-25T03:17:08Z<p>I'm trying