Apollo is not assignable to parameter of type ‘VueClass

The syntax for the “apollo” options you listed do indeed look correct- assuming you’re intending to use the package “vue-apollo” to work with Apollo. If you’re getting this error it may mean that “vue-apollo” hasn’t been installed, or there’s some problem with the installation. If you look in the Vue Chrome debugger tool on one … Read more

[Vue warn]: Unknown custom element: – When running jest unit tests

This is how I was able to get rid of the annoying warning: Include RouterLinkStub, eg.: import { shallowMount, createLocalVue, RouterLinkStub } from ‘@vue/test-utils’; Map NuxtLink stub to RouterLinkStub const wrapper = shallowMount(TestItem, { … stubs: { NuxtLink: RouterLinkStub } }) And in case you were checking nuxt-link text or something, change: const link = … Read more

How to resolve “Error: error:0308010C:digital envelope routines::unsupported” Nodejs 18 error [duplicate]

In my case this happened in my Github Actions build pipeline when I was running npm run build. I was able to fix it by providing the following environment argument: export NODE_OPTIONS=–openssl-legacy-provider According from what I have read this node option can also be set in package.json. What I did was modifying the scripts section … Read more

How to submit a form in Vue, redirect to a new route and pass the parameters?

The default behavior of <form> is to reload the page onsubmit. When implementing SPA’s it would be better to avoid invoking default behavior of <form>. Making use of router module which is available out-of-box in nuxtjs will enable all the redirection controls to flow within the application. if we try to trigger events available via … Read more

“document is not defined” in Nuxt.js

It’s a common error when you start a Nuxt project 😉 The Choices.js lib is available only for client-side! So Nuxt tried to renderer from server-side, but from Node.js window.document doesn’t exist, then you have an error. nb: window.document is only available from the browser renderer. Since Nuxt 1.0.0 RC7, you can use <no-ssr> element … Read more

Error in running nuxt project: “‘nuxt’ is not recognized as an internal or external command”

I solved this problem. I was looking in stackoverflow for similar problems and apparently the problem was the npm cache. I will let a link bellow with the solution and a quick sample of what i did. Link to the answer: npm ERR! code ELIFECYCLE Step 1: npm cache clean –force Step 2: Delete node_modules … Read more

tech