vuejs / vuejs/devtools

路由模式切换导致报错

Open
#751 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need reproduction
Dominant language
TypeScript
Stars
2.9k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

我在使用qiankun做一个微前端,当子应用的路由由createWebHistory切换为createMemoryHistory模式时,开发者工具会报错
Cannot read properties of undefined (reading 'app')
TypeError: Cannot read properties of undefined (reading 'app')
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported qiankun setup with the child route changed from createWebHistory to createMemoryHistory, then inspect the Vue Devtools path associated with the reported undefined app error. Done means the developer tools no longer throw while the child application uses memory history, with the existing history mode still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.