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-import-issue
Steps to reproduce
- pull down repo
- pnpm install
- npm run dev
- visist localhost:3000
What is Expected?
- the
useStrapi composable is auto imported and is ready to be used in app.vue
- the composable has the correct version (v5) if explicitly set
- the composable correctly falls back on v5 when not explicitly set
What is actually happening?
- 500 error when visting localhost
- the
useStrapi is not auto imported (Cannot find name 'useStrapi'.)
- the
useStrapi composable is v4 version when version is not specified
The
useStrapicomposable is missing whenversionis set tov5Version
@nuxtjs/strapi: @nuxtjs/strapi-edge 2.0.0-28910259.a188135
nuxt: 3.15.1
Reproduction Link
https://github.com/kasperjha/v5-import-issue
Steps to reproduce
What is Expected?
useStrapicomposable is auto imported and is ready to be used inapp.vueWhat is actually happening?
useStrapiis not auto imported (Cannot find name 'useStrapi'.)useStrapicomposable is v4 version when version is not specified