Skip to content

Missing useStrapi composable with v5 version #457

@kasperjha

Description

@kasperjha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions