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

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & Pick<ClassAttributes<Layout> & Props, "ref" | "key">'. #5205

Closed
pratikjoshibyjus opened this issue Aug 30, 2020 · 1 comment

Comments

@pratikjoshibyjus
Copy link

TypeScript error in /var/www/react/react-spa-laravel-typescript/client/src/pages/homepage/index.tsx(10,10):
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & Pick<ClassAttributes<Layout> & Props, "ref" | "key">'.  TS2559

     8 |     return (
     9 |       <div className="wrapper">
  > 10 |         <Layout>
       |          ^
    11 |           <Content title="Dashboard">
    12 |             <Home />
    13 |           </Content>


I tried adding following in react-app-env.d.ts still shows error

/// <reference types="react-scripts" />
declare module 'office-ui-fabric-react/lib/Modal' {
  const Modal: React.StatelessComponent<IModalProps>;
}

Could you please help? Thanks

@djhi
Copy link
Collaborator

djhi commented Aug 31, 2020

Yes, we haven't finished adding types. See #4505

@djhi djhi closed this as completed Aug 31, 2020
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

2 participants