refine project my layout folder in components seems not be connected whatever changes i make are not
i swizzled in layoutsversion2 into my refine project but when i make changes into the sider, title files my changes are not reflected in the website
2 Replies
Hi @jakshire01. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
It seems like you're having trouble with the
swizzle
command and the changes you make in the sider
and title
files are not reflecting on your website. Here are a few things you can check:
1. Check your import statements: Make sure you're importing the correct components in your project. After running the swizzle
command, the layout components should be generated in the src/components/layout
directory of your project. You should import these components in your project as shown below:
(Source: Refine MUI ThemedLayout Documentation (https://refine.dev/docs/api-reference/mui/components/mui-themed-layout/#usage-1))
2. Check your swizzle
command: Make sure you're running the swizzle
command correctly. The command should be npm run refine swizzle
. This command will copy the default components from the refine library to your project, allowing you to customize them as you wish.
3. Check your refine version: If you're having trouble with the swizzle
command, make sure you're using the latest version of @refinedev/mui
or @refinedev/mantine
depending on the UI library you're using.
4. Check for existing files: The swizzle
command will not overwrite a file if there is already a file with the same name in the directory. Make sure there are no conflicts with existing files.
If you're still having trouble, please provide more information or a sample of your code so we can better assist you.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@418995770205929473> kapa.ai is still learning and improving, please let us know how it did by reacting below