Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-69389

Require not defined in Hello Soy portlet when exploseGlobal is set to false

    Details

      Description

      When changing the JavaScript loader configuration and setting "exposeGlobal" to false, the "require" function is not defined in the Hello Soy Portlet.

      Steps to repdroduce:
      Go to Configuration > System Settings > Foundation > JavaScript Loader
      Uncheck the exposeGlobal checkbox
      Go back to the site
      Add the Hello Soy portlet to the page

      Current results:
      An error is thrown in the browser's JavaScript console saying that "require is not defined"

      Expected results:
      The "require" function should be defined regardless of the JavaScript Loader settings

        Attachments

        1. failed.png
          181 kB
          Hong Zhao
        2. Screen Shot 2017-03-08 at 11.52.04.jpg
          139 kB
          Julien Castelain

          Issue Links

            Activity

              People

              Assignee:
              leonardo.barros Leonardo Barros (Inactive)
              Reporter:
              julien.castelain Julien Castelain
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 17 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP17
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.X
                  Master