Next.js Discord

Discord Forum

PopoverTrigger Type Error

Unanswered
European sprat posted this in #help-forum
Open in Discord
European spratOP
I am getting this error during build:
> studysmarter@0.1.0 build
> next build

   ▲ Next.js 15.0.4
   - Environments: .env
   - Experiments (use with caution):
     · turbo

   Creating an optimized production build ...
 ✓ Compiled successfully

./src/app/[subjectId]/[courseId]/[unitId]/flashcard/[resourceId]/page.tsx
95:5  Warning: React Hook useEffect has missing dependencies: 'nextCard', 'previousCard', and 'toggleFlip'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/building-your-application/configuring/eslint#disabling-rules
Failed to compile.

./src/app/submit/page.tsx:199:9
Type error: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

  197 |                                                 </PopoverTrigger>
  198 |                                                 <PopoverContent className="w-full p-0">
> 199 |                                                         <Command>
      |                                                          ^
  200 |                                                                 <CommandInput
  201 |                                                                         placeholder="Search subject..."
  202 |                                                                         value={customSubject}

0 Replies