Typescript: Property "path" does not exist
See original GitHub issueI’m currently integrating async routes with preact-router
but I’m coming across a strange type issue when trying to add a path to the component:
I’ve taken a look at the .d.ts
file and there doesn’t seem to be a path property in the interface.
@prateekbh @Silic0nS0ldier @andybons If you add the path
property to IAsyncRouteProps
this is fixed. I can do this if you want me to open a PR?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
'File' object does not have a 'path' property. (TypeScript)
For anyone else using react-dropzone , it seems they're getting the typing for FileWithPath from this library file-selector.
Read more >Reach Router and TypeScript: Property 'path' does not exist ...
You can solve it by specifying the types of the props of whatever page component you're using and adding a path: string; to...
Read more >Property does not exist on type String in TypeScript | bobbyhadz
The "Property does not exist on type String" error occurs when we try to access a property that does not exist on the...
Read more >How to fix 'Property does not exist on type Window in ...
Fixing the 'Property does not exist on type Window in TypeScript' error ... Fortunately for us, the fix is quite simple and involves...
Read more >[Solved]-React typescript : Property 'path' does not exist on ...
Coding example for the question React typescript : Property 'path' does not exist on type 'IntrinsicAttributes & Pick '-Reactjs.
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 FreeTop 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
Top GitHub Comments
Yes please feel free to open the PR
Fixed by #22
released a new version