After publishing, v0 says Invalid Fork and Missing app/page.tsx

I took the steps of merging my fork to Main on Github and published the site.

But now when I try to keep editing, the old chat says Invalid Fork and tells me I have to start a new chat.

The new chat tells me “apps/page.tsx” is missing, and suggests rebuilding the whole website from a screenshot. Kind of nightmarish.

How can I make this work?

Thanks for any help.

but are you editing the Original or the forked one? Not sure I fully understood.

The process, if I am understanding correctly, an dbased on how I have done this is as follows (note this is for feature branching, but I think this maybe is what youre after) :

  1. You have your Original chat (lets call it Main/prod)
  2. you start a repo on GitHub for that chat (an call it Main)
  3. You dupilcate that v0 chat and we name that new duplicate “feature/new thing”
  4. In the Git Hub menu in that v0 chat you create a new branch and call it the same ("feature/new thing”)
  5. You do edits in this file…add your cool new feature.
  6. You push that to GH branch.
  7. In GH you do a PR and then Merge that branch to your Main branch.
  8. Now back in your Original chat (main/prod) in the GH menu up top you select Pull Changes.
  9. You should see your cool new feature appear in that design
  10. you click publish and then its good to go.
  11. Now you can make new edits in the “Main/prod” v0 file if you want and push those to GH and republish, or you can duplicate again and make a new GH branch and repeat the process.

But youre saying… during this process, at some point, you are losing the apps/page.tsx file?
That is VERY odd to say the least.
I feel I have done this a ton of times and never had that happen or have that entire part of the code disappear.

Is there any other part to this we are missing or any other context you can provide?

I think I did all those steps, except I published from the latest chat, not the original chat. Is that something that would mess everything up?

Hmmm idk to be honest.
I mean it is a duplicate so it does have all the items frmo the original.
But is it the first time you are publising it as well? Or had you publihsed already from the original chat and then publishing again later but from the duplicate chat?

I mean I coudl udnersatnd it certain things arent there tha tmaybe would be, but for that entire code to be gone seems odd to me.

But you have the original chat right? Does that still work? If so cant you “Start over” in a sense?

can you pull the merge from GH back into your original main chat and keep working from there? See if that works.

The old chat said Invalid Fork and wouldn’t let me do anything. And when I started a new chat from inside the Project folder, it couldn’t find page.tsx

But in the old chat, there was a box saying Initialized project v52, and a little menu with Add New Chat option.

When I clicked that, it created a duplicate of the project, and in there, everything seems to be working.

Very confusing. I am sweating.

Thanks for helping, Sean!

1 Like

No worries on helping out. Happy to do what I can to see if we can get you sorted.

So just so I understand, by some way of things happening youa re saying that it is now working again ok? Like all is goign fine? Or its still a bit wonky and not reading right or missing code?

If youre saying it DID get fixed, I am very curious why this all happened. I feel like something must have happened with the chat not reading something by reading the forked version. like maybe you did some major structural change? idk…as I dont know what you did exactly.

But maybe try to do the method I was saying, where you always keep a “live” prod/main chat, duplicate it and always branch a GH of that and merge all back to the main (GH branch AND v0 chat) and then publish from that. Seems to have been solid for me.

but still….. Im curious to knwo more haha

Didn’t knowingly make any structural changes, just merged a fork to main, and after that I couldn’t keep working :frowning:

But yeah, when I clicked Add New Chat from within the original chat, it made a duplicate and that seems to be working fine so far. I just published some changes with no errors

1 Like

Ok cool.

Very odd indeed, but VERY happy to hear it has worked out in the end.
Hopefully you can keep it going then and this doesnt occur again.