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

Error using Mongo shell in mongo compass app

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • No version
    • 1.35.0
    • Embedded Shell
    • None
    • Mongo compass version: latest (1.35.0)
      Operating system: MacOS
    • Not Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: