Skip to content

Editing index (/) in local Visual Editor is broken #254

@chicken-noodle-chris

Description

@chicken-noodle-chris
Image

Expected Behavior

Editing the index page (slug /) in local Visual Editor works.

Current Behavior

  • Error is thrown: Error: Invariant: attempted to hard navigate to the same URL / http://localhost:8090/
  • content/pages/index.md is deleted.

Possible Solution

I chased this for a good while, tried changing config, updating packages (next.js, react, pretty much everything), but nothing fixed it. I stopped when I got to the point where I was pretty sure I'd have to dive into one of the dependencies' source code.

Steps to Reproduce

  1. Create a new project from this repository
  2. Install apps and start the app as described in README.md.
  3. Through the visual editor, make literally any change to any element on the index page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions