Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4144

schema.wasm: Uncaught TypeError: t.fields[Symbol.iterator] is not a function

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Tech debt
    • Labels:
      None
    • Not Needed

      You can workaround COMPASS-4145 by running the below in the upgrade-compass-schema branch of compass:

      cp node_modules/@mongodb-js/compass-schema/lib/8d0feb331cc7c14b9513.module.wasm ./src/app/;
      cp node_modules/@mongodb-js/compass-schema/lib/1,js ./src/app/;
      

      Then when trying to analyze a schema, you'll get the below uncaught exception:

      Uncaught TypeError: t.fields[Symbol.iterator] is not a function
          at Object.X.e._mergeSchema (/Users/lucas/compass-electron6/node_modules/@mongodb-js/compass-field-store/lib/index.js:1)
          at Object.X.e.processSchema (/Users/lucas/compass-electron6/node_modules/@mongodb-js/compass-field-store/lib/index.js:1)
          at Store.<anonymous> (/Users/lucas/compass-electron6/node_modules/@mongodb-js/compass-field-store/lib/index.js:1)
          at EventEmitter.eventHandler (/Users/lucas/compass-electron6/node_modules/reflux-core/lib/PublisherMethods.js:44)
          at EventEmitter.emit (/Users/lucas/compass-electron6/node_modules/reflux-core/node_modules/eventemitter3/index.js:137)
          at Store.trigger (/Users/lucas/compass-electron6/node_modules/reflux-core/lib/PublisherMethods.js:63)
          at Store.setState (/Users/lucas/compass-electron6/node_modules/reflux-state-mixin/lib/storeMixin.js:48)
          at /Users/lucas/compass-electron6/node_modules/@mongodb-js/compass-schema/lib/index.js:34
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            lucas.hrabovsky Lucas Hrabovsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: