<?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>Liferay 7 AMD Module Loader with Dependencies</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110365356" />
  <subtitle>Liferay 7 AMD Module Loader with Dependencies</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110365356</id>
  <updated>2026-10-15T12:00:21Z</updated>
  <dc:date>2026-10-15T12:00:21Z</dc:date>
  <entry>
    <title>RE: Liferay 7 AMD Module Loader with Dependencies</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114328878" />
    <author>
      <name>omar harrari</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114328878</id>
    <updated>2019-07-16T14:16:48Z</updated>
    <published>2019-07-16T14:16:48Z</published>
    <summary type="html">hi Belo , i&amp;#39;m having the same issue , did you find a solution ? thanks </summary>
    <dc:creator>omar harrari</dc:creator>
    <dc:date>2019-07-16T14:16:48Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7 AMD Module Loader with Dependencies</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110365355" />
    <author>
      <name>N. Belo</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110365355</id>
    <updated>2018-06-28T11:24:41Z</updated>
    <published>2018-06-28T11:24:41Z</published>
    <summary type="html">&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I've read this tutorial...&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/liferay-amd-module-loader"&gt;https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/liferay-amd-module-loader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I've added a Module by using a BND File + Configuration File
  according with this tutorial:&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/configuring-modules-for-products-loaders"&gt;https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/configuring-modules-for-products-loaders&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;But I'm still having trouble configuring a Module that depends on
  another. Example:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;My Config.Js&lt;/p&gt;
&lt;div class="portlet-msg-info"&gt;Liferay.Loader.addModule(&lt;br /&gt;   {&lt;br /&gt;
      dependencies: [],&lt;br /&gt;     name: 'chart',&lt;br /&gt;     anonymous:
  true,&lt;br /&gt;     path: MODULE_PATH +
  '/js/libs/Chart.bundle.min.js'&lt;br /&gt;   }&lt;br /&gt; );&lt;/div&gt;
&lt;div class="portlet-msg-info"&gt;Liferay.Loader.addModule(&lt;br /&gt;   {&lt;br /&gt;
      dependencies: [],&lt;br /&gt;     name: 'chartRounded',&lt;br /&gt;    
  anonymous: true,&lt;br /&gt;     path: MODULE_PATH +
  '/js/libs/Chart.helper.roundedBarTop.js'&lt;br /&gt;   }&lt;br /&gt; );&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;And In my View.jsp I use Require to Load the Modules:&lt;/p&gt;
&lt;div class="portlet-msg-info"&gt;require('chart', function(Chart) {&lt;/div&gt;
&lt;div class="portlet-msg-info"&gt;...&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Since the &amp;quot;Chartrounded&amp;quot; module depends on the Chart Object
  that is defined in the Chart Module, How can I make It use the Chart
  object inside the ChartRounded Module?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I allways get the message that the Chart isn't defined when it get's
  in the ChartRounded module.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;N.&lt;/p&gt;</summary>
    <dc:creator>N. Belo</dc:creator>
    <dc:date>2018-06-28T11:24:41Z</dc:date>
  </entry>
</feed>
