Pain points with Slice Machine

I've been struggling with some pieces of using Slice Machine for a while now and wanted to write it up here to get thoughts from others in the community.

Maybe I'm doing something wrong. Maybe this is something other people are finding too.

I built my site - - in NextJS version 10 using Slice Machine.

When I upgraded to NextJS version 11 last year I found it very difficult to do so and maintain the existing slices created with slice machine in my project.

Now NextJS 12 is out and Prismic have updated their CLI and React/Next components I'm finding that upgrading is pretty much impossible. There's just too many errors cropping up when I try and none of them give me any real indication of what the issue really is.

I feel that my only choice at this point it to spin up a new project and rebuild the site, copying components & CSS over as needed.

The problem I have now is that I can't seem to find a way to hook the existing slices up to slice machine in the new project.

Am I missing something? How do you handle upgrading slice machine projects?

Am I better to not use slice machine and build the slices manually in my prismic repo?

Hey, @lee. Thank you for sharing your thoughts.

I have just informed the Slice Machine team about your use case. They'll give us their opinion and best recommendations on it.

We'll get back to you as soon as possible.

Hello @lee, we're having a chat with the team. We'd like to know some more details about your project:

  • Do you know the versions of Slice Machine you used before upgrading? If you know the versions of the prismic CLI and the React library. Those can be useful as well.
  • What happens exactly when you try to handle the Slices?
  • Could you show us examples of the errors you're experiencing?

We look forward to your response

The team's first recommendation is to wait for proper migration tools to be created. Since you're still in the pre-shared slices era of Slice Machine.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.