Typescript error: Property 'children' does not exist on type 'IntrinsicAttributes & Props' (TailwindProvider)
See original GitHub issueI’m getting this error on a typescript project I’m currently working on but also occurs when initing a new typescript project.
I think this could be fixed by adding children?: React.ReactNode | React.ReactNode[]
to the interface Props but I’m not entirely sure.
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:14 (1 by maintainers)
Top Results From Across the Web
ts(2322) Property children does not exist on type 'Intrinsic ...
Task is not typed to receive children , but you are actually passing a newline text node as the task's children.
Read more >React.js: Property 'children' does not exist on type 'X'
The React.js error "Property 'children' does not exist on type" occurs when we try access the `children` property in a component for which...
Read more >property 'children' does not exist on type 'intrinsicattributes
The error "property 'children' does not exist on type 'IntrinsicAttributes'" occurs when you are trying to pass a prop to a component that...
Read more >React 18 - Property 'children' does not exist fix [2022] - YouTube
If you have recently upgraded to React 18 and tried to follow tutorials from myself or others, you may run into the error...
Read more >Solved - Property 'children' does not exist on type 'y' in React
The "children does not exist on type" error occurs when we are not passing the children type to the component in use.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can edit your TailwindProvider interface definition props in node_modules/tailwind-rn/dist/tailwind-provider.d.ts like:
interface Props { children: React.ReactNode; utilities: Utilities; colorScheme?: ColorSchemeName; }
Can i do a pull request with this, but i need confirmation of some collaborator for the scope of the change
I need to update
tailwind-rn
to support React 18 and new types from@types/react
to make this error go away.