If you've installed Medusa prior to v1.13.2 with the
create-medusa-app command, then you try to update the
@medusajs/admin to the latest
beta versions, you might run into the following error when running your Medusa backend:
This is because a previous version of
medusa-react allowed creating custom hooks using
createCustomAdminHooks. This has now changed to use different utility hooks, which you can learn about the Medusa React documentation.
To resolve this issue, you have the following options:
- If you haven't used
createCustomAdminHooksin your code, then you can delete the content of the
src/admindirectory which holds the widgets that create your onboarding flow, then try running your Medusa backend.
- If you've used the
createCustomAdminHooksin your code, refer to the Medusa React to learn about the new utility hooks and how you can use them.