0👍
You cannot add references to Vue components by using "vanilla JavaScript" or JQuery operations (unless you use Vue via tag, which isn’t possible via Nuxt).
Instead, this should be part of you Vue component’s template. You can then load the component conditionally via directives as @kissu described in his comment.
- [Vuejs]-HTML 5 wait for drawImage to finish in a Vue SPA
- [Vuejs]-VueJS 3 changing background on clicking a container
Source:stackexchange.com