Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing useStrapi composable with v5 version #457

Open
kasperjha opened this issue Jan 14, 2025 · 0 comments
Open

Missing useStrapi composable with v5 version #457

kasperjha opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kasperjha
Copy link

kasperjha commented Jan 14, 2025

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
@kasperjha kasperjha added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant