Extension picks up browserslist node s version from workspace

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.9.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Iteration Tokyo
    • Not Needed

      To fix this we need to update mongosh to version 1.18+ and then it will be fixed.

      Here's the original description:

      Looks like something when we run playgrounds something is looking for browserlists in the open workspace. To reproduce you can open a node js project folder/workspace and edit the package.json and add something like:

        "browserslist": [
          "Node 14.18"
        ],
      

      Or add a .browserslistrc file with similar.
      The error then occurs when trying to run a playground.

      Reported on github: https://github.com/mongodb-js/vscode/issues/375

            Assignee:
            Rhys Howell
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: