Esri / ember-cli-amd

Ember CLI Addon for using AMD libraries
Apache License 2.0
21 stars 15 forks source link

undefinedModule error from arcgis js library during tests #59

Closed Mciocca closed 4 years ago

Mciocca commented 4 years ago

I am getting an undefinedModule error when running tests in the browser on chrome (visiting /tests) after installing this plugin. The error is being thrown from inside of the arcgis js file.

Uncaught Error: undefinedModule
    at p (:formatted:26)
    at ba (:formatted:228)
    at v (:formatted:33)
    at test-support-suffix.js:7

Being thrown from around here if this helpful:

// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
(function(e, b) {
    var a, m = function() {
        return "undefined" !== typeof q && "function" !== typeof q ? q : "undefined" !== typeof window ? window : "undefined" !== typeof self ? self : this
    }(), l = function() {}, k = function(a) {
        for (var c in a)
            return 0;
        return 1
    }, g = {}.toString, f = function(a) {
        return "[object Function]" == g.call(a)
    }, c = function(a) {
        return "[object String]" == g.call(a)
    }, d = function(a) {
        return "[object Array]" == g.call(a)
    }, h = function(a, c) {
        if (a)
            for (var d = 0; d < a.length; )
                c(a[d++])
    }, n = function(a, c) {
        for (var d in c)
            a[d] = c[d];
        return a
    }, p = function(a, c) {
      **// error happens here**
        return n(Error(a), {
            src: "dojoLoader",
            info: c
        })
ffaubry commented 4 years ago

@Mciocca Please create a reproducible repository with steps. Thx.

Mciocca commented 4 years ago

@ffaubry You can use the same repository I made for the other bug: https://github.com/Mciocca/arcgis-bug

If you attempt to visit localhost:4200/blog/tests it fails to load the page: Screen Shot 2020-11-17 at 4 38 58 PM

After removing the library it loads as expected: Screen Shot 2020-11-17 at 4 36 30 PM

Let me know if you need any more details from me.

ffaubry commented 4 years ago

Fixed by https://github.com/Esri/ember-cli-amd/releases/tag/3.2.2