Open SalahAdDin opened 1 month ago
Hello @SalahAdDin :)
I think first you have to resolve the error, first, verify that the BackButton
and BodyCard
components exist in the @medusajs/admin-ui
package and are correctly exported in the package.json
file. Next, update your import statements to match the correct paths defined in the package's exports. Finally, rebuild your plugin by removing the node_modules
directory, reinstalling dependencies, and starting the development server again to check for successful imports.
Hello @SalahAdDin :)
I think first you have to resolve the error, first, verify that the
BackButton
andBodyCard
components exist in the@medusajs/admin-ui
package and are correctly exported in thepackage.json
file. Next, update your import statements to match the correct paths defined in the package's exports. Finally, rebuild your plugin by removing thenode_modules
directory, reinstalling dependencies, and starting the development server again to check for successful imports.
I checked it and they are not exported, it will be required from the MedusaJS team to export them.
I've encountered the same issue. Components like data tables, route modals, and drawers, data tables would be very beneficial for speeding up development. Currently, we have to manually copy and paste the code from the dashboard package, which is really slowing down the development process.
Bug report
Describe the bug
We are working on updating a plugin that contain Settings screens and we want them to match the existing screens. For that, based on the Team screen, we are calling two different components: BackButton and BodyCard but we are unable to make it work, since those components are not available.
System information
Medusa version (including plugins):
Node.js version: v20.15.1 Database: Postgre SQL 13 Operating system: Manjaro Linux Browser (if relevant): Firefox
Steps to reproduce the behavior
@medusajs/admin-ui
rm -rf node_modules && yarn install && yarn prepare && rm -rf node_modules/@medusajs
yarn dev -- -- --preserve-symlinks
Expected behavior
It should not give any error.
Screenshots
In the plugin:
In the server:
Code snippets
If applicable, add code samples to help explain your problem
Additional context
As a workaround, we are copy pasting the components.