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

Error using Mongo shell in mongo compass app

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.35.0
    • Component/s: Embedded Shell
    • None
    • Environment:
      Mongo compass version: latest (1.35.0)
      Operating system: MacOS
    • Not Needed

      Problem Statement/Rationale

      Encountering this issue after running even simple query (db.coll.findOne({}) in mongo shell inside mongo compass.

      ReferenceError: app is not defined
        if (_fs === "returned") return _srv;else if (_fs === "threw") throw _srv;
                                                                      ^
      
      ReferenceError: app is not defined
          at evalmachine.<anonymous>:36:162
          at evalmachine.<anonymous>:208:5
          at evalmachine.<anonymous>:213:3
          at Script.runInContext (node:vm:139:12)
          at Object.runInContext (node:vm:289:6)
          at ElectronInterpreterEnvironment.sloppyEval (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:1917:2160437)
          at ShellEvaluator.innerEval (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:1917:3905059)
          at ShellEvaluator.customEval (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:1917:3905203)
          at OpenContextRuntime.evaluate (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:1917:2159555)
          at ElectronRuntime.evaluate (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:1917:2160971) 

      Steps to Reproduce

      Encountered this during using the MongoSH in mongo compass.

      Expected Results

      Able to run the commands on database inside mongosh.

      Actual Results

      The error visible above.

            Assignee:
            Unassigned Unassigned
            Reporter:
            wiktor.janiszewski@itstartechs.com Wiktor Janiszewski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: