the only solution I found to this problem is defining following in vite.config of your application (not library)
export default defineConfig({ // ... resolve: { // ... dedupe: ['@inertiajs/vue3'], // <- this line }, });