You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allright, tried to follow above steps and saw that Nuxt is still on core-js 2.x while I just upgraded vue-async-function to core-js 3.x. Also, @vue/composition-api doesn't support SSR yet so it breaks universal mode.
So, to fix this you need to change two things:
Set mode to spa in nuxt.config.js
Install vue-async-function@2.0.2 for core-js 2.x support.
The ideas in this library is great, but I have spent more than a day trying to get it running in a Nuxt application (nuxtjs.org)
My sample application where it fails is here: https://github.com/sbglasius/nuxt-composition-async-function
Steps performed:
Create a Nuxt application,
add Typescript support:
https://typescript.nuxtjs.org/guide/setup.html#installation
add composition support + vue-async-function:
and create a plugin in
plugins/composition.ts
, adding it tonuxt.config.js
Then following the typescript examples, adding code to
pages/index.vue
Unfortunately I'm too much of a noob in the VueJS/NuxtJS world to see my way through what is wrong. I hope you can help. Thank you in advance.
The text was updated successfully, but these errors were encountered: