Convex.json external packages not installing, pnpm monorepo
node-linker=hoisted in a .npmrcThe node-linker hoisted flattens and causes all modules to be installed in the root node_modules folder.
So when we define externalPackages, in our
convex.json like this:The external packages doesn't get installed when running
convex devComparing to a non monorepo project, this works without problems.
A bit of a forced workaround, that solves the issue:
Manually moving a "sharp" module from the root node_modules, into the packages/backend/node_modules, will solve this issue. But seems like a bit of a forceful workaround. Even though it does work.
