vue-router-prefetch
vue-router-prefetch copied to clipboard
Single File Components Use
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!
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]
I'm using vue-router-prefetch@^2 and Vue 3, but getting the same error when using the "custom" prop on router-link components.