#Personal component library works fine with react 19 apps but crashes in NextJS 15 with react 19

3 messages · Page 1 of 1 (latest)

jaunty hamletBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sand tinsel
#

Compiled definition of component :

function Gt({ className: e, variant: o, size: t, ...n }) {
  return /* @__PURE__ */ E.jsx("button", { className: Kt({ variant: o, size: t, className: e }), ...n });
}

One of the pages where the error occurs:

import Link from "next/link";
import { Button } from "@rinzai/zen";

export default function Home() {
    return (
        <main className="min-h-[--remaining-height] flex flex-col items-center justify-center gap-10 text-foreground">
            <h1>Welcome</h1>
            <Link href="/dashboard">
                <Button>Go to Dashboard</Button>
            </Link>
        </main>
    );
}

stack trace

sand tinsel
#

react/jsx-runtime should be an external dependency when building