From d0db833817267ee93c0e10ab1e4c092c8f39e7df Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 13 Aug 2024 09:54:56 +0300 Subject: [PATCH] docs: added troubleshooting for using pnpm (#8537) --- .../app/troubleshooting/pnpm-errors/page.mdx | 11 +++++++++++ www/apps/resources/sidebar.mjs | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 www/apps/resources/app/troubleshooting/pnpm-errors/page.mdx diff --git a/www/apps/resources/app/troubleshooting/pnpm-errors/page.mdx b/www/apps/resources/app/troubleshooting/pnpm-errors/page.mdx new file mode 100644 index 0000000000..f06d5145e2 --- /dev/null +++ b/www/apps/resources/app/troubleshooting/pnpm-errors/page.mdx @@ -0,0 +1,11 @@ +export const metadata = { + title: `pnpm Errors`, +} + +# {metadata.title} + +If you're using `pnpm` and you face errors in your Medusa application, such as `Failed with error The "path" argument must be of type string. Received undefined`, add the file `.npmrc` in the root of your Medusa project directory with the following content: + +```bash +node-linker=hoisted +``` diff --git a/www/apps/resources/sidebar.mjs b/www/apps/resources/sidebar.mjs index a9fbb0da85..a50f58dade 100644 --- a/www/apps/resources/sidebar.mjs +++ b/www/apps/resources/sidebar.mjs @@ -1739,6 +1739,10 @@ export const sidebar = sidebarAttachHrefCommonOptions([ path: "/troubleshooting/errors-installing-cli", title: "Errors Installing CLI", }, + { + path: "/troubleshooting/pnpm-errors", + title: "pnpm Errors", + }, { path: "/troubleshooting/general-errors", title: "General Errors",