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

Uncaught TypeError: Cannot read properties of undefined (reading 'length') #3

Open
bethanyfish opened this issue Nov 17, 2021 · 0 comments

Comments

@bethanyfish
Copy link

bethanyfish commented Nov 17, 2021

I'm getting this error only on one instance.

Working: https://0rnpvmpswe06x9m3-27895142.shopifypreview.com/account/register AND https://0rnpvmpswe06x9m3-27895142.shopifypreview.com/account/login

Not working: https://0rnpvmpswe06x9m3-27895142.shopifypreview.com -- hover over 'Account'

My code:

// Custom form validation for account and registration forms using Vanilla Validator
var registerConfig = {
  container: '#create_customer',
  validationBy: 'onclick',
  validateOnFieldChanges: true,
  selectors: {
    required: 'vv-required'
  },
  messages: { // can also be set by html attribute 'data-message-error'
    required: 'This field is required'
  }
};
var registerValidator = new VanillaValidator(registerConfig);

var loginConfig = {
  container: '#customer_login',
  validationBy: 'onclick',
  validateOnFieldChanges: true,
  selectors: {
    required: 'vv-required'
  },
  messages: { // can also be set by html attribute 'data-message-error'
    required: 'This field is required'
  }
};
var loginValidator = new VanillaValidator(loginConfig);

The login link provided is essentially the same form as the mini login form. Why does one work and not the other?

ERROR:
Screen Shot 2021-11-17 at 10 13 56 AM

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

1 participant