Skip to content

Cannot read property 'bind' of undefined #916

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

Closed
taoche opened this issue Mar 26, 2019 · 13 comments
Closed

Cannot read property 'bind' of undefined #916

taoche opened this issue Mar 26, 2019 · 13 comments

Comments

@taoche
Copy link

taoche commented Mar 26, 2019

Version

5.0.1

Browser and OS info

Chrome 73

Steps to reproduce

Vue.js version is v1.0.24
Vuex version is v0.6.2

open the app, chrome throw a error is "Uncaught TypeError: Cannot read property 'bind' of undefined"

u.storeModules = [];
var e = t.registerModule.bind(t);

t without registerModule method

What is expected?

Do not block the application from opening properly

What is actually happening?

throw a error


could you please add disable button for devtools?

@arjenzwerver
Copy link

I got the same problem for Chrome: Version 72.0.3626.81 (Official Build) (64-bit)
Operating System: Ubuntu 16.04.5 LTS

@bajzarpa
Copy link
Contributor

It looks like there is no backward compatibility for older Vuex versions

@nblackburn
Copy link

Disable the extension, it doesn't look to be compatible with Vue 1.x as @bajzarpa points out.

@taoche
Copy link
Author

taoche commented Mar 26, 2019

Disable the extension, it doesn't look to be compatible with Vue 1.x as @bajzarpa points out.

I certainly know that disabling devTools can get around this, but I have multiple applications, I just hope it doesn't block my application from working properly

@nblackburn
Copy link

nblackburn commented Mar 26, 2019

I certainly know that disabling devTools can get around this, but I have multiple applications, I just hope it doesn't block my application from working properly

Oh i agree, i was just proposing a solution to get the application working again. By no means did i suggest this is the best solution but for now it works.

@c0bra
Copy link

c0bra commented Mar 28, 2019

@Akryum this error still appears to be happening in v5.0.5 with a v1 app.

@Akryum
Copy link
Member

Akryum commented Mar 28, 2019

Please provide a runnable reproduction.

@c0bra
Copy link

c0bra commented Mar 28, 2019

You can check here: https://app.seniorvu.com/

If I have vue devtools uninstalled the site loads. If I have them installed it's just white screened with that error in the console.

@taoche
Copy link
Author

taoche commented Mar 29, 2019

Please provide a runnable reproduction.

image

VM87750:formatted:73 Uncaught TypeError: Cannot read property 'bind' of undefined

t.replaceState.bind(t)

t without replaceState method

@Tinoooo
Copy link

Tinoooo commented Mar 29, 2019

Same here. Visit https://my.qbrx.com with dev tools enabled and check the console.

@liamgomez
Copy link

This is still an issue in 5.0.6, even with Vue.config.devtools = false.

[email protected]
[email protected]
Chrome: 73.0.3683.86

@taoche
Copy link
Author

taoche commented Apr 10, 2019

chrome.zip
I packaged a version 5.0.3 that worked

simsim0709 pushed a commit to simsim0709/vue-devtools that referenced this issue May 7, 2019
@fuchengjx
Copy link

Has the vue team given up on solving the vueDevtools vue1.x compatibility issue? I still have this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants