docs: add troubleshooting guide for pnpm installations (#13351)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
If you use `pnpm` as a package manager in your Medusa application, you might face errors about missing packages. For example:
|
||||
|
||||
```bash
|
||||
can't resolve @medusajs/dashboard
|
||||
```
|
||||
|
||||
## Why This Error Occurred
|
||||
|
||||
Medusa doesn't officially support `pnpm` as a package manager, which may lead to unexpected errors, including issues with package resolution.
|
||||
|
||||
---
|
||||
|
||||
## How to Fix it
|
||||
|
||||
To resolve this error and other potential errors, consider switching to `yarn` as your package manager.
|
||||
|
||||
If you still want to use `pnpm`, you must manually install the following packages in your project:
|
||||
|
||||
```bash
|
||||
pnpm add @medusajs/dashboard @medusajs/icons @meduasjs/types @medusajs/draft-order @medusajs/ui
|
||||
```
|
||||
|
||||
Make sure to also update these packages whenever you update your Medusa application.
|
||||
9
www/apps/resources/app/troubleshooting/pnpm/page.mdx
Normal file
9
www/apps/resources/app/troubleshooting/pnpm/page.mdx
Normal file
@@ -0,0 +1,9 @@
|
||||
import PnpmSection from "../_sections/common-installation-errors/pnpm.mdx"
|
||||
|
||||
export const metadata = {
|
||||
title: `Errors with pnpm`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
<PnpmSection />
|
||||
Reference in New Issue
Block a user