Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefinedModule error from arcgis js library during tests #59

Closed
Mciocca opened this issue Oct 5, 2020 · 3 comments
Closed

undefinedModule error from arcgis js library during tests #59

Mciocca opened this issue Oct 5, 2020 · 3 comments

Comments

@Mciocca
Copy link

Mciocca commented Oct 5, 2020

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
Copy link
Member

ffaubry commented Nov 17, 2020

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

@Mciocca
Copy link
Author

Mciocca commented Nov 17, 2020

@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 added a commit that referenced this issue Nov 17, 2020
@ffaubry
Copy link
Member

ffaubry commented Nov 17, 2020

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

@ffaubry ffaubry closed this as completed Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants