devtools: 5.3.2: Property or method "then" is not defined on the instance but referenced during render
Version
5.3.2
Browser and OS info
Mac OS 10.13.6 / Version 0.69.135 Chromium: 77.0.3865.120 (Build officiel) (64 bits)
Steps to reproduce
Just load any vue app in dev mode.
What is expected?
The console should be empty.
What is actually happening?
The console is full of this kind of errors Property or method "then" is not defined on the instance but referenced during render
for every component.
This wasn’t occurring with 5.3.1.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 37
- Comments: 16 (2 by maintainers)
I also get this error, but only when i enable “New Vuex backend” in settings. When i disable this setting, the error does not appear.
Hello!
My case for reproducing
You need app that uses following packages:
vuex-router-sync
App should have minimum two routes =)
Steps:
vuex-router-sync
runs mutationroute/ROUTE_CHANGED
with payload{from, to}
where will have references to components and their instancespayload.to.matched.0.instances.default._renderProxy
Proxy checks the availability of methodthen
and shows warning<del>I think this might be related to using import to load components.</del> I’ll try to add a minimal example.
I nailed it 😃
Code here: https://codesandbox.io/s/vue-routing-example-zj1so With reproduction link here: https://zj1so.csb.app/hello
Please open chrome dev tools, switch to Vue tab and check “New vuex backend” is enabled, then switch to console tab and do a refresh.
Just wanted to say I’ve been debugging my app for 2 hours so thank you @nicooprat for this issue! 😞 🙌
同时存在两个不同版本的vue-devtools,禁用调其中一个就OK了
Getting this error in version 6.0.0 beta 19 #1583
Please provide a runnable minimal reproduction.