Upgrading slice-machine-ui to v2 and nuxtjs 2

App is using nuxtjs 2, and has slice-machine-ui at 1.X version. Is it possibly to upgrade to slice-machine-ui v3 without upgrading app to nuxtjs 3?

I just briefly check it, and I don't see issue with running slice machine ui, but it break the app. Before, I Invest more time I wanted to ask if anyone go trough similar issues and if it's worth?

Hi @janusz,

Upgrading slice-machine-ui to v3 while keeping your app on Nuxt 2 is not officially supported and will likely cause breaking issues. slice-machine-ui v3 is designed for Nuxt 3 and expects a different ecosystem (Vue 3, Vite, etc.), while Nuxt 2 relies on Vue 2 and Webpack.

Why It Breaks:

  1. Vue 3 vs. Vue 2 Incompatibilityslice-machine-ui v3 assumes Vue 3, which is not compatible with Nuxt 2's Vue 2 setup.
  2. Different Dependencies – Many Prismic-related dependencies are updated to work with Nuxt 3.
  3. File Structure Changesslice-machine-ui v3 aligns with the new Slice Machine architecture that better integrates with Nuxt 3.

What You Can Do:

  • Stick with slice-machine-ui v1 if you’re not ready to migrate to Nuxt 3.
  • Migrate to Nuxt 3 if you want to use slice-machine-ui v3.
  • Test in an isolated environment to verify if there's a workaround, but expect dependency conflicts.

If you want to keep using Nuxt 2, upgrading slice-machine-ui to v3 is not recommended unless Prismic provides an official way to do so.