Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invariant: attempted to hard navigate to the same URL / http://localhost:3000/ when trying "todo" in examples #161

Closed
forhonourlx opened this issue Dec 22, 2022 · 3 comments

Comments

@forhonourlx
Copy link

Describe the bug
Error: Invariant: attempted to hard navigate to the same URL / http://localhost:3000/ when trying "todo" in examples
Please help, thanks in advance.

To Reproduce
pc init
pc run

Screenshots

1 of 1 unhandled error

Unhandled Runtime Error
Error: Invariant: attempted to hard navigate to the same URL / http://localhost:3000/
Call Stack
handleHardNavigation
node_modules\next\dist\shared\lib\router\router.js (485:14)
eval
node_modules\next\dist\shared\lib\router\router.js (1007:16)
step
node_modules\tslib\tslib.es6.js (102:0)
Object.eval [as next]
node_modules\tslib\tslib.es6.js (83:45)
asyncGeneratorStep
node_modules\@swc\helpers\lib\_async_to_generator.js (23:0)
_next
node_modules\@swc\helpers\lib\_async_to_generator.js (12:0)
eval
node_modules\@swc\helpers\lib\_async_to_generator.js (17:0)
new Promise
<anonymous>
eval
node_modules\@swc\helpers\lib\_async_to_generator.js (9:0)
Router.handleRouteInfoError
node_modules\next\dist\shared\lib\router\router.js (1041:10)
eval
node_modules\next\dist\shared\lib\router\router.js (1190:29)
step
node_modules\tslib\tslib.es6.js (102:0)
Object.eval [as throw]
node_modules\tslib\tslib.es6.js (83:45)
asyncGeneratorStep
node_modules\@swc\helpers\lib\_async_to_generator.js (23:0)
_throw
node_modules\@swc\helpers\lib\_async_to_generator.js (15:0)

** Specifics (please complete the following information):**

  • Python Version: 3.9
  • Pynecone Version: 0.1.10
  • OS: Windows 11
  • Browser (Optional): Chrome
@Alek99
Copy link
Member

Alek99 commented Dec 22, 2022

Thanks for checking out the framework. We don't support windows currently, this is something we are working on fixing asap. But for now I would run on linux subsystem until be get windows ready.

We should have this done in the next couple weeks. In the mean time, there is a Pynecone WSL walkthrough that a community member made see here: #128

@forhonourlx
Copy link
Author

Hope that Windows version would come soon! Thanks!

@Alek99 Alek99 closed this as completed Dec 22, 2022
@Alek99 Alek99 closed this as completed Dec 22, 2022
@gschurck
Copy link

I have the same issue and I am on Linux, running pynecone in Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants