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

Cannot load Babel Polyfill (polyfill-babel) due to typo on path

    Details

      Description

      In frontend-js-polyfill-babel-web/src/main/resources/META-INF/resources/config.js the polyfill-babel is defined (with Loader.addModule(...)).

        MODULE_PATH + 'browser-polyfill.min.js'
      

      There's a missing / there. In fact if you open a Portal instance with js_fast_load=0, trying to load it with...

      Liferay.Loader.require('polyfill-babel')
      

      ...will try to download the following path:

      http://localhost:8080/o/frontend-js-polyfill-babel-webbrowser-polyfill.min.js?languageId=en_US 
      

      Please notice how there's no / between the Servlet Context Path and the module name.
      It should be there (placed with ##): ...babel-web##browser-polyfill...

        Attachments

        1. polybellfix.png
          277 kB
          Joyce Wang
        2. polybellre.png
          166 kB
          Joyce Wang

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            pierpaolo.ramon Pier Paolo Ramon
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 39 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP12
                7.0.0 DXP SP2
                7.0.3 CE GA4
                Master