Cannot read property 'split' of null
See original GitHub issueVersions:
- 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:
- Created 7 years ago
- Reactions:2
- Comments:9 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
All data-* attributes have been prefixed with
vv
so you should change
data-rules
todata-vv-rules
.It seems
data-vv-rules
is now deprecated. I tried to get the same result withv-validate:myProperty.initial="'required'"
but it didn’t work and I got the error mentioned above in the title.