question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript: Property "path" does not exist

See original GitHub issue

I’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:

image

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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
prateekbhcommented, May 11, 2018

Yes please feel free to open the PR

0reactions
prateekbhcommented, May 23, 2018

Fixed by #22

released a new version

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found