medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.23k stars 2.67k forks source link

Unable to add a page to medusa admin #6143

Closed thoward27 closed 10 months ago

thoward27 commented 10 months ago

Preliminary Checks

Issue Summary

No matter what I try, I cannot seem to get a new route wired into the admin dashboard.

  1. I started with these docs and followed them verbatim on a very fresh installation of medusa
  2. I started the development server (literally looking for the route admin/routes/custom/page.tsx == /a/custom)
  3. The page is blank, and no link shows up in the sidebar.

I then tried to build the admin and re-run the dev server in the hopes that would help, but alas, I still just see a blank page. I've tried using .tsx, .jsx, and even .js to define a page. There are no error logs to investigate and there are no errors in the console about failing to fetch the page.

I am at a total loss of what to try next. If anyone has some tips they would be greatly appreciated! If someone could even just point me to how to debug these types of failures better I would love to run through the process and even open a PR to the docs to help future folks

How can this issue be resolved?

  1. Understanding of how to actually add pages to the admin dashboard.
  2. How to add sidebar links.
  3. [Potentially] Updating the docs to help future admin'ers

Are you interested in working on this issue?

thoward27 commented 10 months ago

This was actually completely my fault. I was running things through compose and happened to misconfigure my bind mount. That plus using a custom built image as a base left me in a weird spot that was hard to recognize as being so broken. Once I got my bind mounts sorted and cleared a cache dir things started working quite smoothly. My apologies for adding this noise.