Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5941

Driver installation fails when using PNPM

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      From https://www.mongodb.com/community/forums/t/mongodb-node-js-driver-missing-dependencies-when-installed-with-pnpm/266598:

      Whenever I try to deploy my application, which uses Node.js for the backend and MongoDB for the database, I get errors at runtime related to missing dependencies (BSON or mongodb-connection-string-url, for example).

      I use PNPM, and unless I add the --shamefully-hoist flag, I get said errors.

      I haven’t had this issue with any other packages. I even tried in a new project, and the same behaviour was observed, with the only dependency in said project being MongoDB.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: