Attempting to incorporate a widget/plugin/extension system into my existing web UI built with NuxtJS. Within the pages/view.vue
single-file component, I aim to establish the extension system by dynamically loading components indicated through query parameters like /view?extension=example-a
.
Potential Solution 1
The closest answer I found was on how to include an external JavaScript file in a Nuxt.js page. However, struggling with compiling the component as attempts to build a webpack resource from 'example-a' component failed to import correctly, resulting in an error message that stated:
[Vue warn]: Unknown custom element: <example-a> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Potential Solution 2
Considering utilizing http-vue-loader, but unsure where to begin.
Potential Solution 3
Perhaps overthinking it and there is a simpler solution out there.