Vue router with Vue 3 raises the error "Uncaught TypeError: Object(...) is not a function"
This issue is caused when you install Vue router 3 with Vue 3 so you should uninstall the current version :
npm uninstall vue-router --save
and install the new one by :
npm i vue-router@next --save
Example