Validator problem
Opened this issue · 1 comments
nohumans commented
Hi!
I have problem, I don't know if it's my mistake or the library's the code
the .js
import './bootstrap';
import Alpine from 'alpinejs';
import validator from 'validatorjs';
import wizard from '@glhd/alpine-wizard';
Alpine.plugin(wizard);
window.Alpine = Alpine;
Alpine.start();
the code
<form x-data="{name: ''}">
<div>
<div x-wizard:step.rules="{ name: 'required|numeric|min:1|max:120' }">
<input x-model="name" id="name" type="text" name="name" />
</div>
<div x-wizard:step> ... </div>
<div x-wizard:step> ... </div>
</div>
</form>
the error
caught TypeError: Cannot read properties of undefined (reading 'def')
Eny idea?
Thanxx
bm2ilabs commented
same thing, any idea how to fix this issue ?