Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout.tsx error #11

Open
luvnft opened this issue Dec 15, 2024 · 0 comments
Open

Layout.tsx error #11

luvnft opened this issue Dec 15, 2024 · 0 comments

Comments

@luvnft
Copy link

luvnft commented Dec 15, 2024

Can you help me fix the error in this code from the last update app/categories/[slug]/layout.tsx
Type error: Type 'Readonly<{ children: ReactNode; params: { slug: string; }; }>' does not satisfy the constraint 'LayoutProps'.
Types of property 'params' are incompatible.
Type '{ slug: string; }' is missing the following properties from type 'Promise': then, catch, finally, [Symbol.toStringTag]

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

No branches or pull requests

1 participant