<?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>React portlet not working with UI-Router or another custom router lib</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114150528" />
  <subtitle>React portlet not working with UI-Router or another custom router lib</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114150528</id>
  <updated>2026-04-06T23:42:48Z</updated>
  <dc:date>2026-04-06T23:42:48Z</dc:date>
  <entry>
    <title>RE: React portlet not working with UI-Router or another custom router lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114332645" />
    <author>
      <name>Iván Zaera Avellón</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114332645</id>
    <updated>2019-07-17T07:27:20Z</updated>
    <published>2019-07-17T07:27:20Z</published>
    <summary type="html">Hi there:&lt;br /&gt;Can you please have a look at this guide and see if it helps -&amp;gt; &lt;a href="https://github.com/liferay/liferay-js-toolkit/wiki/How-to-troubleshoot-your-setups"&gt;https://github.com/liferay/liferay-js-toolkit/wiki/How-to-troubleshoot-your-setups&lt;/a&gt; ?&lt;br /&gt;It would be great if you can provide feedback not only about the problem, but about the guide itself, so that we can continue enhancing it for the whole community to leverage it. No matter if the guide helps you solve your problem or is worthless at all :-).&lt;br /&gt;Feel free to continue asking here if it doesn&amp;#39;t help.&lt;br /&gt;Thanks.</summary>
    <dc:creator>Iván Zaera Avellón</dc:creator>
    <dc:date>2019-07-17T07:27:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: React portlet not working with UI-Router or another custom router lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114153855" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114153855</id>
    <updated>2019-06-27T17:42:06Z</updated>
    <published>2019-06-27T17:42:06Z</published>
    <summary type="html">The problem with many types of JS portlets is that they assume the address bar is the same as the context root.&lt;br /&gt;&lt;br /&gt;If your portlet is on /web/guest/home for example, the browser assumes that your path is /web/guest/home/metal-dom/src/all/dom, etc. But these are not the actual paths to the assets, it would be something like /o/my-react-portlet/metal-dom/src/all/dom.&lt;br /&gt;&lt;br /&gt;The context root for the portlet is never going to be the relative one from the address bar. So any usage, any library that assumes the address bar is the context root will always fail and must be avoided.&lt;br /&gt;&lt;br /&gt;Absolute paths are the only paths that will work.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-06-27T17:42:06Z</dc:date>
  </entry>
  <entry>
    <title>React portlet not working with UI-Router or another custom router lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114150527" />
    <author>
      <name>Marco Portillo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114150527</id>
    <updated>2019-06-27T09:44:06Z</updated>
    <published>2019-06-27T09:44:06Z</published>
    <summary type="html">Hi everybody,&lt;br /&gt;As soon as I  add a custom router library, the react portlet stopped working. It gives me this error:&lt;br /&gt;(index):995 Error: Load timeout for modules: metal-dom/src/all/dom,metal-uri/src/Uri,clay-tooltip/src/ClayTooltip,infoserver-react@1.0.0 at combo?browserId=othe…vent-focus.js:17339(anonymous)@(index):995(anonymous)@combo?browserId=othe…vent-focus.js:17239Promise.then (async)require@combo?browserId=othe…vent-focus.js:17221(anonymous)@(index):918- This error appears on the google chrome console.I tried with UI-router and react-router as well, both gives the same error. I tried disabling SPA &lt;a href="https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/automatic-single-page-applications#disabling"&gt;https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/automatic-single-page-applications#disabling&lt;/a&gt;-spa but it did not work either, any ideas? I have been struggling with this for a couples of weeks already and I really need a help with this. I can&amp;#39;t continue without solving this issue. I am currently using Liferay 7.1 and react 15.6.2. and the UI-Router library as well, 0.4.0 version.  You have the error also attached as an image as well.</summary>
    <dc:creator>Marco Portillo</dc:creator>
    <dc:date>2019-06-27T09:44:06Z</dc:date>
  </entry>
</feed>
