docs: added core package to troubleshooting step (#2473)
This commit is contained in:
@@ -315,9 +315,13 @@ Please make sure that your plugin is following the correct structure. If the err
|
|||||||
```bash npm2yarn
|
```bash npm2yarn
|
||||||
cd <SERVER_PATH>/node_modules/medusa-interfaces
|
cd <SERVER_PATH>/node_modules/medusa-interfaces
|
||||||
npm link
|
npm link
|
||||||
|
cd <SERVER_PATH>/node_modules/@medusajs/medusa
|
||||||
|
npm link
|
||||||
cd <PLUGIN_PATH>
|
cd <PLUGIN_PATH>
|
||||||
rm -rf node_modules/medusa-interfaces
|
rm -rf node_modules/medusa-interfaces
|
||||||
|
rm -rf node_modules/@medusajs/medusa
|
||||||
npm link medusa-interfaces
|
npm link medusa-interfaces
|
||||||
|
npm link @medusajs/medusa
|
||||||
npm link
|
npm link
|
||||||
cd <SERVER_PATH>
|
cd <SERVER_PATH>
|
||||||
npm link your-plugin
|
npm link your-plugin
|
||||||
@@ -325,7 +329,7 @@ npm link your-plugin
|
|||||||
|
|
||||||
Where `<SERVER_PATH>` is the path to your Medusa server and `<PLUGIN_PATH>` is the path to your plugin.
|
Where `<SERVER_PATH>` is the path to your Medusa server and `<PLUGIN_PATH>` is the path to your plugin.
|
||||||
|
|
||||||
This links the `medusa-interfaces` package from your `medusa-backend` to your plugin directory and then links your plugin to your `medusa-backend`.
|
This links the `medusa-interfaces` and `@medusajs/medusa` packages from your `medusa-backend` to your plugin directory and then links your plugin to your `medusa-backend`.
|
||||||
|
|
||||||
#### APIs not loading
|
#### APIs not loading
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user