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

vue拦截报错 #55

Closed
menglingz opened this issue Apr 22, 2022 · 12 comments
Closed

vue拦截报错 #55

menglingz opened this issue Apr 22, 2022 · 12 comments

Comments

@menglingz
Copy link

image

@menglingz
Copy link
Author

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'get')
at setup (index.vue?7abe:272:1)
at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:155:1)
at setupStatefulComponent (runtime-core.esm-bundler.js?5c40:7109:1)
at setupComponent (runtime-core.esm-bundler.js?5c40:7064:1)
at mountComponent (runtime-core.esm-bundler.js?5c40:4951:1)
at processComponent (runtime-core.esm-bundler.js?5c40:4926:1)
at patch (runtime-core.esm-bundler.js?5c40:4518:1)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js?5c40:5066:1)
at ReactiveEffect.run (reactivity.esm-bundler.js?a1e9:185:1)
at setupRenderEffect (runtime-core.esm-bundler.js?5c40:5185:1)

@geekskai
Copy link
Owner

geekskai commented May 2, 2022

在哪个分支?哪个路由页面?

@dengyun-1013
Copy link

在哪个分支?哪个路由页面?

这个bug我这边也出现,请问怎么解决的

@geekskai
Copy link
Owner

你们是在哪个分支上运行的代码?告诉我分支名,我会马上修复!

@dengyun-1013
Copy link

你们是在哪个分支上运行的代码?告诉我分支名,我会马上修复!

我在下载下来,启动的时候就报的

@geekskai
Copy link
Owner

我刚才直接下载包到本地,先运行 yarn 安装依赖,然后运行 yarn run serve 就能跑起来!

解决方案:先检查一下本地各个环境的版本,这是我这边的环境你可以参考一下:

  1. node.js: v16.14.2
  2. yarn: v1.22.17
  3. npm: v8.5.0

下面是我录制的视频,你可以看下!

2022-06-16.12.23.23.mov

@dengyun-1013
Copy link

我刚才直接下载包到本地,先运行 yarn 安装依赖,然后运行 yarn run serve 就能跑起来!

解决方案:先检查一下本地各个环境的版本,这是我这边的环境你可以参考一下:

  1. node.js: v16.14.2
  2. yarn: v1.22.17
  3. npm: v8.5.0

下面是我录制的视频,你可以看下!

2022-06-16.12.23.23.mov

这一次可以了,我之前是用的npm安装的,不知道是不是这个原因,现在,这个项目在我这边可以跑起来了,谢谢大神

@geekskai
Copy link
Owner

哈哈,别这么说,我不是啥大神,能帮助到你我也很开心,有技术问题,我们也可以随时交流,希望能帮我这个项目https://github.com/geekskai/react-network-detect 点个star 谢谢

@dengyun-1013
Copy link

哈哈,别这么说,我不是啥大神,能帮助到你我也很开心,有技术问题,我们也可以随时交流,希望能帮我这个项目https://github.com/geekskai/react-network-detect 点个star 谢谢

已经点了哦

@geekskai
Copy link
Owner

嗯 看到了 ,感谢

@dengyun-1013
Copy link

嗯 看到了 ,感谢

大佬,这个代码里有些地方没看懂,方便加个联系方式吗?

@geekskai
Copy link
Owner

15797802025 我微信,记得备注一下啊

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

3 participants