I'm developing a laravel-inertia-vue project that has some frequently used UI components that I've extracted to it's own package for reuse on other package (imported as a git repo dependancy), 2-3 of these component use inertia features like usePage, useForm & Link, making the package dependant on the @inertiajs/vue3 package.
When I try to import the custom Link component that extends on the inertia link component (it wraps it in some visual non functional styling), the Link seems to render correctly, but when clicked the following error is thrown in the console: this.resolveComponent is not a function.
So far I've only tried getting the Link component to work, I haven't tested the other components which utilize the usePage and useForm functions.
I've tried registering the component in the main project's createInertiaApp call but to no avail, I was hoping to not have to register each component separately.
The package itself is a simple vite app that compiles all components (tailwindcss is also used in the package) and exports them as a dist bundle. The package does not initialize a vue or interia app, perhaps this is the step them I'm missing? (if yes, wouldn't that conflict with the main project's vue/inertia app?)
A question about this has also been posted on stackoverflow, but so far no takers: https://stackoverflow.com/questions/78861509/inertiajs-vue-component-library
Any help would be greatly appreciated.