Skip to content

Cannot read property 'type' of null #517

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
asmyshlyaev177 opened this issue Jan 15, 2018 · 4 comments
Closed

Cannot read property 'type' of null #517

asmyshlyaev177 opened this issue Jan 15, 2018 · 4 comments

Comments

@asmyshlyaev177
Copy link

Version

4.0.0

Browser and OS info

Chrome 63.0.3239.132 / Ubuntu 16.04 x64

Steps to reproduce

After last update in vue-devtools extension when i try to select any component i got error in console

Can't see data and component property.

Same situation in firefor browser. I tried to checkout code version from 12.01.2018 and have same problem.

What is expected?

I can select component and see data, properties, computed etc.

What is actually happening?

I got following error in console

Uncaught TypeError: Cannot read property 'type' of null
    at VM22763 backend.js:1
    at x (VM22763 backend.js:1)
    at t.a (VM22763 backend.js:1)
    at Object.y (VM22763 backend.js:1)
    at e (VM22763 backend.js:1)
    at e (VM22763 backend.js:1)
    at e (VM22763 backend.js:1)
    at e (VM22763 backend.js:1)
    at Object.t.stringifyStrict (VM22763 backend.js:1)
    at Object.t.stringify (VM22763 backend.js:1)
@vuejs vuejs deleted a comment from minatonda Jan 15, 2018
@vuejs vuejs deleted a comment from pavelpage Jan 15, 2018
@Akryum
Copy link
Member

Akryum commented Jan 15, 2018

Do you use vee-validate? If so, see #499 (comment)

@asmyshlyaev177
Copy link
Author

Yes, we are. Version:
"vee-validate": "^2.0.0-rc.25",

@Akryum
Copy link
Member

Akryum commented Jan 15, 2018

Try to update to 2.0.3.

@asmyshlyaev177
Copy link
Author

It works! Thank you.

Also found hou you can improve code
lines 445-446, 462-463

https://github.com/vuejs/vue-devtools/blob/a79d9c55176ed8146b3631256a869d6938209c3e/src/backend/index.js#L445

this line
type: prop.type ? getPropType(prop.type) : 'any',
change to
type: prop && prop.type ? getPropType(prop.type) : 'any',

Same with options.type and
required: !!options.required,

I checked with old version vee-validate and no errors.

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

2 participants