t3dotgg/t3gallery

Next.js 14.2.4 Parallel Routing Issue

Opened this issue · 13 comments

With the latest Next.js the Delete button is throwing an Error. This occurs when you press the Delete button in the image viewing page rendered alongside the gallery. However, the button works perfectly well from an individually rendered image view page.

This is really strange and I am honestly not sure how to go about looking what is so different about Next.js 14.2.4 from 14.1.4 that it breaks the app.

Any help would be much appreciated! Really curious as to what is happening with the development of Parallel Routing!

just had a look

I am getting the same error. I believe the error is to do with when redirect("/") is called as it is refreshing the page with the modal with an image that now doesn't exist

After more testing, it seems to be a problem with the latest next version 14.2.4. Removing the package and installing version 14.2.3 fixes the issue for me

I started the tutorial today and ran into the same issue. I downgraded to 14.2.3 and I was no longer got the error when deleting but started to get the same error when uploading. I went back to 14.2.4 and I no longer get issues on upload or delete.

i also got the same issue in 14.2.4, fixed when downgraded to 14.2.3

Had the same issue. Downgraded from 14.2.5 to 14.2.3 after which the problem disappeared. But I found another problem that throws the same error.

When I delete an image and then upload another one without refreshing the page, on upload complete I get the image not found error thrown. Does anyone else have the same problem?

Same issue here. Was on 14.2.7, which throws the image-not-found error when deleting. Downgrading to 14.2.3 fixes deletion error, but uploading immediately after deletion produces image-not-found on the callback. Anyone make progress on this?

Any fixes yet?

Workaround for anybody still searching - vercel/next.js#65411

Thanks @Kristiqn-it, it worked ; )

So the workaround is downgrading? I’m on version 15 and would like to use the latest version.

Edit: I managed to fix the modal's closing issue by adding a @modal/page.tsx file. However, I also had to delete my .next folder to get this new file to work!