Skip to content

custom-route can't be found. #331

@Shulelk

Description

@Shulelk
  • Python Version: 3.9
  • Pynecone Version: latest
  • OS: windows 10
  • Browser (Optional): edge

About page and Index page is ok, but when I try to custom-route give me this message: Invariant: attempted to hard navigate to the same URL /custom-route http://localhost:3000/custom-route


This is my main code:

def about():
return pc.text("About page")

def custom():
return pc.text("custom")

app = pc.App(state=State)
app.add_page(index)
app.add_page(about)
app.add_page(custom, path="/custom-route")
app.compile()


I don't kown why, this is just a example in docs.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions