strapi icon indicating copy to clipboard operation
strapi copied to clipboard

nuxt-strapi v1.1.0 support for nuxt 2

Open echatzief opened this issue 2 years ago • 3 comments

Hey,

I want to ask if you will support nuxt 2 for the nuxt-strapi v1.1.0 in the future.

Thanks

echatzief avatar Feb 03 '22 11:02 echatzief

Sorry to hijack your question, but mine is also related: does the Nuxt 2 version support Strapi v4? or only v3?

It is not very clear from the docs

salv0 avatar Feb 04 '22 10:02 salv0

@echatzief Nuxt2, as in v2.15.8 and lower is only compatible with the strapi module v0. If you want to use v1, you need to install Nuxt3 or Nuxt Bridge.

@benjamincanac improved compatibility with Nuxt Bridge in commit 70f73af. This is not yet released in v1.2.0, so for the moment you'll need to use the edge channel.


@salv0 v0 of this module only supports Strapi3

luke-z avatar Feb 07 '22 13:02 luke-z

@luke-z Just released https://github.com/nuxt-community/strapi-module/releases/tag/v1.3.0 to have nuxt bridge compatibility.

@salv0 @echatzief As @luke-z mentioned, the v1 is only compatible with Nuxt3 or Nuxt Bridge and the v0 version of the module for Nuxt 2 does not support Strapi v4, you can refer to this https://github.com/nuxt-community/strapi-module/issues/163#issuecomment-1012939655.

benjamincanac avatar Feb 07 '22 14:02 benjamincanac

I have released a module to support Nuxt 2 and Strapi 4: https://www.npmjs.com/package/nuxt2-strapi4.

In my team I had project which depends on nuxt 2 completely and migration was breaking old system. The Nuxt Strapi module older one is much better for us as we have token refresh for our mobile app. So I forked https://github.com/nuxt-modules/strapi module to support for Strapi 4.

Feel free to give me some suggestions and feedback to improve it. I will maintain this as its required in my other projects as well.

MexsonFernandes avatar Oct 17 '22 10:10 MexsonFernandes