Skip to content

Conversation

@haydenbleasel
Copy link
Member

No description provided.

@vercel
Copy link
Contributor

vercel bot commented Dec 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
flags Error Error Dec 15, 2025 5:33am
flags-sdk-next-15 Ready Ready Preview, Comment Dec 15, 2025 5:33am
flags-sdk-next-16 Ready Ready Preview, Comment Dec 15, 2025 5:33am
flags-sdk-snippets Ready Ready Preview, Comment Dec 15, 2025 5:33am
flags-sdk-sveltekit-snippets Ready Ready Preview, Comment Dec 15, 2025 5:33am
shirt-shop Ready Ready Preview, Comment Dec 15, 2025 5:33am
shirt-shop-api Ready Ready Preview, Comment Dec 15, 2025 5:33am

Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The FlagsConfig component is instantiated without the required code prop, which is needed to pass configuration data to the component. The code variable is available in the parent component and should be passed as a prop.

View Details
📝 Patch Details
diff --git a/apps/docs/app/[lang]/(home)/page.tsx b/apps/docs/app/[lang]/(home)/page.tsx
index b48b3b2..b8605ac 100644
--- a/apps/docs/app/[lang]/(home)/page.tsx
+++ b/apps/docs/app/[lang]/(home)/page.tsx
@@ -108,7 +108,7 @@ const HomePage = async ({ params }: HomePageProps) => {
           {ditheredHeroFlag ? (
             <HeroImage />
           ) : null}
-          <FlagsConfig />
+          <FlagsConfig code={code} />
         </OneTwoSection>
         <TextGridSection data={textGridSection} />
         <CenteredSection

Analysis

Missing required prop in FlagsConfig component

What fails: TypeScript compilation fails in apps/docs/app/[lang]/(home)/page.tsx due to missing required code prop on the <FlagsConfig /> component.

How to reproduce:

cd apps/docs
pnpm run build

Result:

Type error: Property 'code' is missing in type '{}' but required in type 'FlagsConfigProps'.

./app/[lang]/(home)/page.tsx:111:12
  111 |           <FlagsConfig />
      |            ^

The fix: The FlagsConfig component requires a code prop (as defined in its type definition). The component is used on line 111 where the code variable is available from the component's async parameters. Passing code={code} to the component satisfies the required prop type.

Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants