-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Failed to compile.
04:58:27.573 |
04:58:27.574 | ./app/layout.tsx
04:58:27.574 | ReactServerComponentsError:
04:58:27.574 |
04:58:27.574 | You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default.
04:58:27.574 |
04:58:27.574 | ,-[/vercel/path0/app/layout.tsx:1:1]
04:58:27.574 | 1 | import React, { useState } from 'react';
04:58:27.574 | : ^^^^^^^^
04:58:27.574 | 2 | import "./globals.css";
04:58:27.575 | 3 | import { Inter } from "next/font/google";
04:58:27.576 | 4 | import Footer from "./Footer";
04:58:27.576 | `----
04:58:27.576 |
04:58:27.576 | Maybe one of these should be marked as a client entry with "use client":
04:58:27.576 | ./app/layout.tsx
04:58:27.576 |
04:58:27.576 |
04:58:27.576 | > Build failed because of webpack errors
04:58:27.605 | error Command failed with exit code 1.
04:58:27.605 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
04:58:27.627 | Error: Command "yarn run build" exited with 1