vue-router-prefetch icon indicating copy to clipboard operation
vue-router-prefetch copied to clipboard

Single File Components Use

Open MichaelPrecel opened this issue 3 years ago • 4 comments

Hi @egoist — thanks for your contributions to the Vue community <3

I'm just wondering whether this works with an app using Single File Components (with Vite)?

I've installed, however am running into the error:

[Vue warn]: Component is missing template or render function. 
  at <QuickLink to="/about" > 
  at <Menu> 
  at <App>

and

index.esm.js:181 Uncaught TypeError: Failed to execute 'observe' on 'IntersectionObserver': parameter 1 is not of type 'Element'.

Keen to hear your thoughts!

MichaelPrecel avatar Oct 21 '21 11:10 MichaelPrecel

Hello,

I faced the same issue with vue 3, be sure tu use yarn add vue-router-prefetch@^2. I simply ran yarn add vue-router-prefetch and it installed [email protected]

nicolas-t avatar Jan 01 '22 11:01 nicolas-t

I'm using vue-router-prefetch@^2 and Vue 3, but getting the same error when using the "custom" prop on router-link components.

VincentDauliac avatar Sep 06 '22 13:09 VincentDauliac