Skip to content
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

Validator problem #8

Open
nohumans opened this issue Apr 10, 2023 · 1 comment
Open

Validator problem #8

nohumans opened this issue Apr 10, 2023 · 1 comment

Comments

@nohumans
Copy link

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
Copy link

bm2ilabs commented Jul 2, 2024

same thing, any idea how to fix this issue ?

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