#2491·systemjs

Conflict with other amd module imports

Author: im-hamza-devCreated Jul 2, 2024Updated Sep 14, 2024

Demonstration

I have an Angular app where I am using systemjs to load single-spa modules. Meanwhile I am injecting potree scripts as well. Conflict is occurring with systemjs/dist/extras/amd.js, this amd file is creating an issue.

Expected Behavior

Potree scripts should load properly and available in window.Potree or Potree variable

Actual Behavior

Potree scripts injecting after loading of this amd.js script doesnt load properly and is not available globally. When I load my potree script before this amd.js script. It loads as expected. I have noted that other similar modules are having the same problem loading if amd.js exist