Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single File Components Use #52

Open
MichaelPrecel opened this issue Oct 21, 2021 · 4 comments
Open

Single File Components Use #52

MichaelPrecel opened this issue Oct 21, 2021 · 4 comments

Comments

@MichaelPrecel
Copy link

MichaelPrecel commented Oct 21, 2021

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!

@nicolas-t
Copy link

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

@VincentDauliac
Copy link

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

@NamesMT
Copy link

NamesMT commented Mar 19, 2023

+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.

@samueleiche
Copy link

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.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants