Conversation
|
@Nikhi-l is attempting to deploy a commit to the Nikhil's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:
To read more about collaboration on Vercel, click here. |
There was a problem hiding this comment.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| 'use client'; | ||
|
|
||
| import { useEffect, useState } from 'react'; | ||
| import { useRouter } from 'next/navigation'; | ||
| import Spline from '@splinetool/react-spline/next'; | ||
| import { Button } from '@/components/ui/button'; | ||
| import { cn } from '@/lib/utils'; |
There was a problem hiding this comment.
[P1] Import server-only Spline variant in client component
After converting the home page to a client component ('use client'), the file still imports @splinetool/react-spline/next. The /next build relies on server-only APIs such as useServerInsertedHTML and cannot be bundled into a client component, which is why the test run now fails with “This module cannot be imported from a Client Component module.” Swap to the client-safe package (@splinetool/react-spline) or lazily load the component so the client page can compile.
Useful? React with 👍 / 👎.
Summary
Testing
pnpm lint app/page.tsx public/landing.html docs/prd/landing-page-flow.mdpnpm test(fails: This module cannot be imported from a Client Component module)https://chatgpt.com/codex/tasks/task_e_68bfb30f2ebc8324bfc207d8f6cbfaa8