Lost my slices after transforming my customtypes into pages

Hello,

I had a Nuxtjs version 2 project with an old version of Prismic/SliceMachine.
I started a new Nuxt 3 project with the latest version of SliceMachine and other modules, which I linked to the existing Prismic project.

I made sure to copy the slices directory from my old project to the new one.
Everything was working fine (SliceMachine and Prismic SaaS) until I migrated the custom types to pages in SliceMachine!!

And since then:

  • In SliceMachine, my custom types no longer have slices (even though the slices are present in the SliceMachine interface in the Slice tab).
  • In Prismic SaaS, my pages no longer have slices.

However, the site continues to work, so retrieving data via API still returns the data, but I don't dare touch anything because I'd lose the data too.

How can I get out of this mess?

Thank you in advance.
Eric

Hey @ricou,

Sorry to hear you’re running into this! That’s a strange one. I’m trying to understand the steps you took to get there, could you clarify what you mean by this?

until I migrated the custom types to pages in SliceMachine!!

Migrated in what way? Do you mean you’ve changed the custom types into pages? As a general rule I’d say if you work backward step by step you might get your setup back the way it should be and adjust course from there, but I want to make sure we’re on the same page :slight_smile:

Thank you very much for your reply.

I used the "convert to page type" button on the custom type in SliceMachine.
And after that, when I go to that same custom type in the "Page Types" section of SliceMachine, I no longer have any slices.

Thanks for the clarification, that makes sense! A couple of follow up questions so we can investigate further:

  • What was the old Slice Machine version you were on, and what is the current one you’re using?
  • Are the disappearing slices only in those two places (the new page type, and the page builder), are you seeing the other ones where they ought to be?
  • Do you see anything in the “changes” page of Slice Machine?
  • Just to confirm, what you need is just to have your slices visible inside the page type? (As they should be, but everything else works fine?)

Additionally, could you share the name of your repository? :slight_smile: Thank you!