Open MichaelPrecel opened 3 years ago
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 vue-router-prefetch@1.6.3
I'm using vue-router-prefetch@^2 and Vue 3, but getting the same error when using the "custom" prop on router-link components.
+1, using @^2 (2.0.2), getting:
Uncaught TypeError: Failed to execute 'observe' on 'IntersectionObserver': parameter 1 is not of type 'Element'. at Proxy.observe (index.esm.js:181:18)
I also mostly uses router-link with custom prop.
I'm also using v2.0.2 and getting Uncaught TypeError: Failed to execute 'observe' on 'IntersectionObserver': parameter 1 is not of type 'Element'.
this.$el resolves differently in Vue 3, maybe the author is not aware.
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:
and
Keen to hear your thoughts!