refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
27.72k stars 2.15k forks source link

[BUG] corrupted data-rpvider code when npm run refine swizzle #6035

Closed vitali-bc closed 2 months ago

vitali-bc commented 3 months ago

Describe the bug

Screenshot 2024-06-11 alle 21 15 18

Steps To Reproduce

npm run refine swizzle yes you will see code is corrupted

Expected behavior

code must be correct

Packages

simple-rest

Additional Context

No response

aliemir commented 3 months ago

Hey @vitali-bc, sorry for the issue! Looks like our swizzle command had some issues with the import type statements which are introduced with the latest release to our codebase. I've just opened up a PR to fix this issue. 🙏

Until the next release is done, you can check out the source code for @refinedev/simple-rest here to create your data provider 🚀

vitalijalbu commented 3 months ago

Hey @vitali-bc, sorry for the issue! Looks like our swizzle command had some issues with the import type statements which are introduced with the latest release to our codebase. I've just opened up a PR to fix this issue. 🙏

Until the next release is done, you can check out the source code for @refinedev/simple-rest here to create your data provider 🚀

Hi! Could you please look also inside the next BUG I opened? I think they are correlated...
PS. i'm the same guy :D