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

[nuxt] use in middleware with redirects #328

Closed
4 of 5 tasks
chendaozhun opened this issue Sep 7, 2024 · 4 comments · Fixed by #334
Closed
4 of 5 tasks

[nuxt] use in middleware with redirects #328

chendaozhun opened this issue Sep 7, 2024 · 4 comments · Fixed by #334
Assignees
Labels
🐛 bug Something isn't working

Comments

@chendaozhun
Copy link

chendaozhun commented Sep 7, 2024

Are you using Nuxt?

  • Check this box if you encountered the issue using Nuxt and the included module.

Describe the bug

A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug

https://stackblitz.com/edit/nuxt-starter-nrfxlc?file=README.md

Reproduction

Mac OS

System Info

Mac OS

Used Package Manager

pnpm

Validations

@chendaozhun chendaozhun added the 🔍️ pending triage This issue needs to be looked into label Sep 7, 2024
@PDieE
Copy link

PDieE commented Sep 10, 2024

same mistake

@prazdevs
Copy link
Owner

Ok thank you for the very clean repro, i will try to look into it and get better cookie parsing/writing to see what happens when i get some time 😌

@prazdevs prazdevs added 🐛 bug Something isn't working and removed 🔍️ pending triage This issue needs to be looked into labels Sep 10, 2024
@prazdevs prazdevs changed the title A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug [nuxt] use in middleware with redirects Sep 10, 2024
@prazdevs prazdevs linked a pull request Sep 16, 2024 that will close this issue
@prazdevs prazdevs self-assigned this Sep 16, 2024
@prazdevs
Copy link
Owner

hopefully should work better in 4.0.2

@chendaozhun
Copy link
Author

I have verified,thanks!!

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

Successfully merging a pull request may close this issue.

3 participants