Using `@nuxtjs/strapi` with Strapi v5

I'm encountering some issues with autoimport with version 2.0.0 of @nuxtjs/strapi module.

Specifically, it seems that the correct version of useStrapi composable is not being correctly imported. I end up with the composable being either unavailable or available but with an incorrect v4 version instead of the v5, depending on whether I specify v5 as the desired version in the config.

Manually importing the composable does not work either, as it is not included in the modules import.d.ts file in the module's folder within
node_modules
.

Any fix or workaround would be greatly appreciated! See the link below for issue with more details and a repo with reproduction steps.

https://github.com/nuxt-modules/strapi/issues/457
GitHub
The useStrapi composable is missing when version is set to v5 Version @nuxtjs/strapi: @nuxtjs/strapi-edge 2.0.0-28910259.a188135 nuxt: 3.15.1 Reproduction Link https://github.com/kasperjha/v5-impor...
Was this page helpful?