Draft
Conversation
Contributor
Contributor
There was a problem hiding this comment.
🔧 Build Fix:
The Layout component from @vercel/examples-ui 2.0.4 no longer accepts title and description props. These props have been removed from the LayoutProps interface and must be removed from the Layout component usage.
View Details
📝 Patch Details
diff --git a/edge-middleware/i18n/pages/_app.tsx b/edge-middleware/i18n/pages/_app.tsx
index b529f679..8aa830c7 100644
--- a/edge-middleware/i18n/pages/_app.tsx
+++ b/edge-middleware/i18n/pages/_app.tsx
@@ -8,8 +8,6 @@ export default function MyApp({ Component, pageProps }: AppProps) {
return (
<Layout
- title={pageProps.dictionary?.title || 'i18n'}
- description={pageProps.dictionary?.subtitle}
path="edge-middleware/i18n"
>
<Component {...pageProps} />
Analysis
TypeScript type error due to removed Layout props in @vercel/examples-ui 2.0.4
What fails: TypeScript compiler fails on edge-middleware/i18n/pages/_app.tsx because the Layout component from @vercel/examples-ui no longer accepts title and description props.
How to reproduce:
cd /vercel/sandbox/primary/edge-middleware/i18n
pnpm run buildResult:
Type error: No overload matches this call.
Property 'title' does not exist on type 'IntrinsicAttributes & LayoutProps'.
The LayoutProps interface in version 2.0.4 only accepts path, optional deployButton, and optional children props. The component no longer supports title and description props that were previously being passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Demo URL
Type of Change
New Example Checklist
npm run new-examplewas used to create the example