You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can do monkey-patch to fix this bug. Since it effect many of doc page, it will hard to update it one by one, also I still can not found the source of this kind of code coming from.
// Should be place before Line 184 in // https://github.com/magicuidesign/magicui/blob/main/content-collections.ts#L184if(body.includes('@/components/magicui')){// This is an intentional log, just for debug or future improvementconsole.log(`🐛 Patch: /${document._meta.path} contains @/components/magicui`);// Monkey-patch string in all Docs "@/components/magicui" to "@/components/ui"body=body.replace(/\@\/components\/magicui/gi,'@/components/ui');}
NOTE: you also need to update the const to let for the body
The import path should be "@/components/ui/dock.tsx" instead of
import { Dock, DockIcon } from "@/components/magicui/dock";
The text was updated successfully, but these errors were encountered: