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.

was created with unknown prop 'location'

See original GitHub issue

If use: <Route exact path="about"><About /></Route> All good. If use: <Route exact path="about" component={About} /> About.svelte:14 <About> was created with unknown prop ‘location’ About.svelte:14 <About> was created with unknown prop ‘exact’

Any ideal?

“svelte”: “^3.20.1” “svelte-routing”: “^1.4.2”

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
HNazmulcommented, Feb 12, 2022

hey, @EmilTholin this package becoming popular. you should fix all of the bugs. I saw that the latest version is a year ago. please fix the bug

12reactions
GarethOatescommented, Apr 5, 2020

I get this warning if I do: <Route path="post" component="{Post}" /> but not when I do <Route path="post"><Post /></Route>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing props down in Svelte - Stack Overflow
With svelte-routing, you don't pass props from the <Link> component, you pass them from the <Route> component implicitly.
Read more >
Unknown Prop Warning - React
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as...
Read more >
Unknown prop using export let and export function • REPL ...
<script> import Wrapper from "./Wrapper.svelte" let showModal = false let saveForm </script> <button on:click="{() => showModal = !
Read more >
Dynamic behavior in Svelte: working with variables and props
Learn and put into practice some basic Svelte concepts, like creating components, passing data using props, rendering JavaScript expressions ...
Read more >
Location Data from Props - Gatsby
What is location data ... key: 'ac3df4', // does not populate with a HashHistory! ... Note that you have to parse the search...
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