Error refine v4 and antd v5

I have a style.less files and used carco config After migration from v3 to v4 at refine gives me error with less files
8 Replies
kapa.ai
kapa.ai2y ago
Hi @Michaelreda. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai2y ago
---------------------- In the migration from v3 to v4, Ant Design removed less and now uses and recommends CSS-in-JS instead. To fix the error with your .less files, you need to manually migrate them to CSS-in-JS. You can follow Ant Design's documentation for less migration here (https://ant.design/docs/react/migration-v5#less-migration). Source: https://refine.dev/docs/api-reference/antd/migration-guide/v4-to-v5 (https://refine.dev/docs/api-reference/antd/migration-guide/v4-to-v5) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Migration Guide | refine
Ant Design released a new major version as a v5. This document will help you upgrade from antd 4.x version to antd 5.x version.
kapa.ai
kapa.ai2y ago
<@707506535357480961> kapa.ai is still learning and improving, please let us how it did by reacting below
sensitive-blue
sensitive-blue2y ago
Hey @Michaelreda, refine uses antd@5.x.x in version 4 and Ant Design drop using less with version 5. So, you can change your code suggested by Ant Design.
multiple-amethyst
multiple-amethyst2y ago
How to change it? Or you mean change less to css? ?
multiple-amethyst
multiple-amethyst2y ago
I already chacked it, and put this code at carco.config but it's not working
sensitive-blue
sensitive-blue2y ago
Sorry, I don't know enough about it. You can create an issue in the Antd repo.