Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1085

Current folder's browserslist is parsed and checked when mongosh is started

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.8
    • Affects Version/s: None
    • Component/s: AsyncWriter
    • None
    • 2
    • Not Needed
    • Iteration Reno

      When mongosh starts it looks for browserlist 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. Then start mongosh. Although it may make sense to show an error when the browserlist is invalid if we're integrating with the code in the current folder, it does mean that this check may fail if the browserslist version in mongosh isn't up to date enough to have the version specified in the browserslist. I think we probably want to fix that.

      This was brought up through the VSCode extension, when we run playgrounds.
      Reported on github: https://github.com/mongodb-js/vscode/issues/375

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: