Vue+TS main.ts error: unused expression, expected an assignment or function call

unused expression, expected an assignment or function call

Solution
modify the mount statement of Vue in main.ts

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
}).$mount()

Add $mount() to solve this problem


Read More: