question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'split' of null

See original GitHub issue

Versions:

  • VueJs: 2.1.4
  • Vee-Validate: 2.0.0-beta.17

Description:

Getting vue.runtime.common.js?d43f:423 TypeError: Cannot read property 'split' of null(…) error.

Steps To Reproduce:

Template used:

<div>
   <input
        type="text"
        name="email"
        v-model="form.email"
        v-validate data-rules="required|email"
        class="full-width"
        :class="{'has-error': errors.has('email')}"
      >
</div>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
logaretmcommented, Dec 8, 2016

All data-* attributes have been prefixed with vv

so you should change data-rules to data-vv-rules.

1reaction
lucpotagecommented, Mar 30, 2017

It seems data-vv-rules is now deprecated. I tried to get the same result with v-validate:myProperty.initial="'required'" but it didn’t work and I got the error mentioned above in the title.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript: ncaught TypeError: Cannot read property 'split' of null
1 Answer 1 · I think type-checking in conditionals by default is a good idea. – Jasper. Aug 15, 2014 at 17:09 ·...
Read more >
How to Prevent cannot read property split of ... - Gopi Gorantala
The "cannot read property 'split' of undefined" error occurs when trying to call split() method on a variable that stores an undefined value....
Read more >
Cannot Read Property 'split' of Undefined - freeCodeCamp
Calling array[i].split(""); to split each string into substrings of characters is a valid approach, but it will throw TypeError: Cannot read ...
Read more >
How to prevent cannot read property split of ... - Meticulous
If you're dealing with JavaScript promises and you are trying to access the response from the promise without awaiting it, if the split()...
Read more >
Cannot read property 'split' of null in React - YouTube
Your browser can't play this video. ... Solved: Error message:TypeError: Cannot read property ' split' of null in React.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found