Patrik.S
Explore posts from serversoption api - useNuxtApp
Hello, I’m migrating bigger project from nuxt2 to 3 🙈, and I found out that I don’t know how to call plugin in option api.
The plugin looks like this:
I know i can get $hello in setup:
But the question is how can I get the $hello in option API - I don’t like calling it at every method.
At nuxt2 a just call it in method like ‘this.$hello’ and I had full context.
Is there any elegant solution for this?
Thanks for any advice!
2 replies
Undefined cookie inside middleware
https://stackblitz.com/edit/nuxt-starter-zctfjj?file=middleware/createContractId.ts
Hey, I am trying to resolve the cookie inside middleware.
When I set cookie and navigateTo I get undefined cookie after refresh page the cookie is known.
I work with something like this:
if I try setTimout the navigateTo approx. 300ms then it works
any tip what can i do?
3 replies
Problem after migrating to 3.3.1 from (3)
I getting errors
1. 500 [vite-node] [plugin:vite:vue] [VITE_ERROR] /pages/chyba-bankid-chybne-udaje.vue?macro=true
I found similar problem in vite repo, but didnt help. Has anyone encountered this problem?
2. When i tried build
npx nuxi build
Does anyone have a clue how I can fix this or where the problem is.
Thanks a lot1 replies