[bug report] Slicemachine infinite loading and delete website session

Hello Prismic!

I updated slice-machine-ui to 0.6.0 and found two weird bugs.

  1. Infinite loading save change
    Every time I update slice or custom type and click save change button, it won't stop loading.
    I have to kill server and re-launch to push changes... It's super annoying bug.

  2. Website session deleted after using slice machine in local.
    To see my changes in website after having pushed my changes, the website ask me to re-login.
    I guess slice machine delete my prismic website logged in session somehow.

Thanks for reading and have a great day !

Hey @woolim, thanks for reaching out. I'm testing a similar case here:

Can you give us more information of your use case?

  • What elements where you saving and where they inside a Slice or a Custom Type?
  • Which version of Slice Machine do you use?
  • Can you further explain the issue with your website session?

Hello @Pau

What elements where you saving and where they inside a Slice or a Custom Type?

It happens to any fields updated in any slices, any custom types. Once I click Save to file system, the button stays like below picture forever even though the tasks are done.

Which version of Slice Machine do you use?

slice-machine-ui to 0.6.0 with Nuxt 2.15.8

Can you further explain the issue with your website session?

How to produce session bug
0. Login prismic website

  1. Click Save to file system
  2. Infinite loading
  3. Kill server during infinite loading and restart
  4. Click push changes.
  5. Refresh prismic website, redirected to login page.

Hey @woolim, thanks for the details.

Similarly to the other thread, I tried installing a new nuxt project with your identical kit versions and was able to save the changes immediately to the filesystem.

Are you still having this issue?

@Pau Still happens :frowning:

Probably related to this warning message ? I see this error message when I update something on slicemachine.

[slice-machine] Could not read mock config for type "Image": not supported.

Where are you adding your mock data? In the Slice simulator or the options in the field's modal. you should use the first option.