Skip to content

router-link not resolved in unit test #2184

Discussion options

You must be logged in to vote

The warning you mentioned would seem to indicate that you have two copies of Vue included in your project. One copy is providing the resolveComponent function, while the other is running the component rendering. That leads to resolveComponent believing it is being run outside of render.

You could try deleting node_modules and reinstalling, though that may not help if both versions are listed in the lock file. Commands like npm list vue and npm why vue could also help to establish what copies of Vue are present.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@julisch94
Comment options

Answer selected by julisch94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants