Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-62787

popper lib throwing minor warning about source map

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: JavaScript, Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      The last line of lib/amd/src/popper.js is a comment pointing to a source.map file that doesn't exist:

      //# sourceMappingURL=popper.js.map

      Firefox at least gives you a warning in the dev tools after it tries to access that file, gets a 404 error instead and then tries to interpret the error page as JSON.

      Source map error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
      Resource URL: http://<moodlesite.com>/lib/requirejs.php/-1/core/first.js
      Source Map URL: popper.js.map[Learn More]
      

      I'm guessing just deleting the comment is the way to go here.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bawjaws David Scotson
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: