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

fix: [NuxtCompositionApi@0.23.1] Cannot use composition-api inside middleware #457

Closed
LouisMazel opened this issue Apr 15, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@LouisMazel
Copy link

🐛 The bug

Since 0.23.x: Inside the middleware folder, my middleware use the composition-api and this error is thrown :

[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.

🛠️ To reproduce

Reproduction Link with codesandbox

ℹ️ Additional context

If you want any other informations, ask me;

@LouisMazel LouisMazel added the bug Something isn't working label Apr 15, 2021
@danielroe
Copy link
Member

This should be fixed in v0.23.2 - let me know if that doesn't fix it for you.

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

2 participants