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

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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

                Packages

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