Error: Uncaught (in promise) TypeError: n.swapComponent is not a function
Error: Uncaught (in promise) TypeError: n.swapComponent is not a function vue.js
vue.js
I was also facing the same problem after npm update and to fix it I have downgraded inertia package. In package.json "@inertiajs/inertia": "^0.1.7" then npm install.