When I installed shaka player in Nuxt and mode: universal, I received this error: In spa mode shaka is working but in universal it doesn’t work. Thanks to the answer, the issue was solved with the following: Answer You did not provided any code, but I’m 90% sure that this is coming from the fact that window is not present
Tag: nuxt.js
Getting mutation error in Nuxt JS while binding form with state
I am trying to bind my form’s fields with my vuex store in Nuxt JS. It works fine with normal text fields with get() set() in computed. But having trouble in customizing getting and setting manually. I am trying to push objects to an array in a specific format from my template to store and also keep the binding among
Loop in NuxtJS (Vue) outputs wrong data
I have the following data: my loop does the following: and outputs only: but (the loop above) should output all data for both languages, right? Also, how can i choose language (statically or dynamically)? Answer You should make two loops and render the selected language conditionally using v-if :
TypeError: axiosCookieJarSupport is not a function, works in Node.JS but not .vue pages?
I have a function to authenticate with a website, it works when I run it in a basic node.js script but it does not work when run from a .vue page (using NuxtJS framework). When I run it in a .vue page it receives errors stating TypeError: axiosCookieJarSupport is not a function Examples below. Working code in basic .js file:
Catch all routes in NuxtJS pages routing
I have this page route in NuxtJS: pages/_book.vue So that when I go to localhost:3000/my-book, params.book is equal to “my-book” as expected. However some books are nested deep inside several directories. I want to get the full route as params.book. These routes should be separated by “/”. For example, localhost:3000/finance/strategies/experts should make params.book equal to “finance/strategies/experts”. How can I achieve
Is there a way to install v-cupertino module in Nuxt.js?
I’ve found an interesting Vue.js module called v-cupertino. But there is no solution described for implementing in Nuxt.js. I’ve tried it using then but not working for me. I’m getting 10 warnings regarding somthing not found in ‘vue’ and Nuxt crashes. Part of the result in Terminal: Is anybody experienced using these types of modules? Thank you, Radek. Answer The
How do I access localStorage or mock localStorage for Jest + vue-test-utils tests?
I am trying to test an axios request, and I need to use an auth token in order to access the endpoint, however my test fails because I am getting “Bearer null” and inputting this into my headers.Authorization. Here is my actual code below File I’m testing: Test file: How do I mock or get the actual auth token in
Nuxt: Dynamic head / meta title is undefined on ssr
I have a nuxt project, where the meta title and description comes (from nuxt/content). The async fetch for the data is made in index and received in a sub component via a getter. On generate, the meta tags are there but on ssr not :/ I tried it with async and await, but I still get the error Uncaught (in
How to add Quasar to an existing Nuxt app?
I want to install Quasar to my existing Nuxt project. I’ve been reading through the quasar docs and the only thing they mentioned in the installation page is their own CLI which has no option for Nuxt. I also came across the nuxt-quasar module but it not maintained anymore. Has anyone have any experience with this? Answer Current answer ⚠️⚠️⚠️⚠️⚠️
Pass nested object name as props to component
I have made a component for my forms which I pass the main object as props to the component. For it’s items I pass a json including each form input’s data. In this data I pass the property name to …