Skip to content

SCORM Export Issues with Canvas LMS Imports #246

Open

Description

@tbaker-mc

We are working on integrating SCORM files into our Canvas LMS instance that are generated from LiaScript exports. However, when we added the files that the vendor who developed the materials/exported the SCORM files, these files don't load properly. Please note that these are SCORM 1.2 files they are making available to us, and I am unsure of the exact export parameters they used for their export.

What is happening is that when the SCORM file loads, Canvas renders the SCORM package for approximately one to two seconds with a provided "loading" message, but then displays nothing as if there is nothing to render. Even after letting the page sit for a few minutes, nothing loads. Please see a screen recording here: LiaScript Loading Issue in Canvas LMS

I tested this with a SCORM 2004 export as well and ran into the same issue. I then performed a 1.2 export with an added -iframe argument, which still rendered with the "loading" message with no rendered content. The last export test I conducted was exporting the file as SCORM 2004 with an added -iframe argument on the export; this finally rendered in the LMS.

Activity

  1. andre-dietrich commented on Sep 30, 2025

    @andre-dietrich
    Member

    @tbaker-mc ... thanks for commenting ;-) ... can you provide me with the full command that you used to create the SCORM packages?

  2. tbaker-mc commented on Sep 30, 2025

    @tbaker-mc
    Author

    I'm not sure which command the vendor used, but I used the commands below:

    • $ liaex -i README.md -f scorm1.2 -o test1
    • $ liaex -i README.md -f scorm2004 -o test2
    • $ liaex -i README.md -f scorm1.2 -o test3 --scorm-iframe
    • $ liaex -i README.md -f scorm2004 -o test4 --scorm-iframe

    My assumption is that the vendor is using the standard -f scorm1.2 command based on the information they've provided. The first and third commands produced the loading screen in the video. The second command loaded LiaScript, but loaded the viewer that requested the file to be displayed. The fourth, I had zero issues with.

  3. grugnog commented on Sep 30, 2025

    @grugnog

    We are using the Github Action (PR here!) to do the exports - you can see the current configuration here which is equivalent to liaex -i README.md -f scorm1.2 --scorm-embed=true.

    We should be able to add a SCORM 2004 (with iframe enabled) version to the build, at least until we can figure out if there is another way to fix this issue - working on this now.

  4. andre-dietrich commented on Oct 1, 2025

    @andre-dietrich
    Member

    Hi, can you try to remove the =true? I guess then the parameter is not identified correctly ....

  5. grugnog commented on Oct 1, 2025

    @grugnog

    @andre-dietrich thanks! We are only running the command via the Github Action (which builds it correctly!) - the one in my comment was just to illustrate the settings we are using. We added a SCORM 2004 (with iframe enabled) version and I believe @tbaker-mc confirmed that was working, so I think this can perhaps be closed (although we could add some documentation for future Canvas users).

  6. tbaker-mc commented on Oct 1, 2025

    @tbaker-mc
    Author

    As @grugnog said, using -f scorm2004 with the --scorm-iframe argument in the command does allow for Canvas to display the LiaScript SCORM file properly.

    However, @andre-dietrich , I did notice that Canvas (rather, Google's page inspector function) was throwing an error with a scorm1.2 file about a security error:
    Image
    This is the specific script section the error is referencing:
    parcelRequire("5pTP5").then((function(e) { const r = window.navigator.userAgent; if (r.indexOf("Trident/") > 0 || r.indexOf("MSIE ") > 0) { console.warn("unsupported browser"); const e = document.getElementById("IE-message"); e && (e.hidden = !1) } else { let r = !1; new $17e4404d1159b49d$export$ed35f0402f515308(new e.Connector,{ allowSync: !1, debug: r, courseUrl: null, script: window.liascript_course || null }) } }

    Not sure if this helps determine a possible bug in the code or not specific to SCORM 1.2 outputs (with or without the --scorm-iframe argument) and SCORM 2004 outputs without the --scorm-iframe argument.

  7. andre-dietrich commented on Oct 1, 2025

    @andre-dietrich
    Member

    @tbaker-mc ... instead of --scorm-iframe, could you try --scorm-embed?

  8. tbaker-mc commented on Oct 6, 2025

    @tbaker-mc
    Author

    @andre-dietrich apologies for the delay in this reply -- priorities had to shift last week for us. Here's what I found:

    • For a SCORM 1.2 using --scorm-embed, the same cross-origin error gets thrown with the same script section being referenced.
    • For a SCORM 2004 using --scorm-embed, this does render properly in Canvas.

    So it looks like 2004 with --scorm-iframe and --scorm-embed function as intended for the LMS's SCORM functionality.

    Something I did not look for last time that I noticed this time is that there is a violation being thrown -- since Canvas will not allow full-screen mode of the SCORM file, the enter/exit fullscreen functionality cannot function. Not inherently an issue, but it is something I noticed that gets thrown with all exports. Obviously not a fix that's needed, just wanted to point it out in case this ever gets noted by someone else.

  9. andre-dietrich commented on Oct 7, 2025

    @andre-dietrich
    Member

    @tbaker-mc that sounds great, so we can add this to the list of supported LMS ... we just received a grant to improve the exporter, where we will add the standard settings, so that users only have to know their LMS and version ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions