Skip to content

Uncaught TypeError: Cannot read property 'type' of null #522

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
csicky opened this issue Jan 16, 2018 · 2 comments
Closed

Uncaught TypeError: Cannot read property 'type' of null #522

csicky opened this issue Jan 16, 2018 · 2 comments

Comments

@csicky
Copy link

csicky commented Jan 16, 2018

Version

4.0.1

Browser and OS info

Chrome 63.0.3239.132 (64-bit) / Windows 10

Steps to reproduce

Click on a component in Vue devtools component inspector.

What is expected?

To be able to inspect the component state.

What is actually happening?

Error is thrown in the browser console.

backend.js:formatted:1095 Uncaught TypeError: Cannot read property 'type' of null
    at backend.js:formatted:1095
    at x (backend.js:formatted:1103)
    at t.a (backend.js:formatted:847)
    at Object.y (backend.js:formatted:134)
    at e (backend.js:formatted:395)
    at e (backend.js:formatted:405)
    at e (backend.js:formatted:396)
    at e (backend.js:formatted:396)
    at Object.t.stringifyStrict (backend.js:formatted:410)
    at Object.t.stringify (backend.js:formatted:350)

This appeared last week on my colleague's machine, in another country. Using remote desktop I allowed to use my machine to inspect something, we thought it's specific to his machine Today it hit also my machine, exactly the same thing. At that line o is null but the code tries to read from it o.type.

Breaks on type: o.type ? D(o.type) : "any"
Possible fix would be: type: (o && o.type) ? D(o.type) : "any"

image

@MatthewDanielLA
Copy link

Are you using vee-validate? See #499
If so, update vee-validate to 2.0.3 and everything should be back to normal.

@csicky
Copy link
Author

csicky commented Jan 16, 2018

Yes, that fixed it, thank you! I did search for the same issue before creating the one but somehow I missed it. Great development experience and Vue.js is super! Thanks again!

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