-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Version
4.0.0-rc.6
Reproduction link
Steps to reproduce
start run script
What is expected?
router-view/ router-link normal
What is actually happening?
const RouterView = RouterViewImpl;
// warn against deprecated usage with &
// due to functional component being no longer eager in Vue 3
function warnDeprecatedUsage() {
const instance = vue.getCurrentInstance();
const parentName = instance.parent && instance.parent.type.name;
.....
TypeError: Cannot read property 'parent' of null
const RouterLinkImpl =
.....
setup(props, { slots, attrs }) {
const link = vue.reactive(useLink(props));
const { options } = vue.inject(routerKey);
Cannot destructure property 'options' of 'vue.inject(...)' as it is undefined.
Metadata
Metadata
Assignees
Labels
No labels