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

Error: Uncaught (in promise) TypeError: n.swapComponent is not a function


I am facing the same issue when I upgraded

from:

"@inertiajs/inertia": "^0.1.9",

to

"@inertiajs/inertia": "^0.8.2",

Since it was suggested by GitHub security audit, so for now I just revert back to ^0.1.9


Try update the package @inertiajs/inertia-vue to last version "^0.5.4".

In package.json set "@inertiajs/inertia-vue": "^0.5.4" and run npm install.

Work from me!


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.