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

Field - Cannot read property 'children' of undefined #37

Open
Blm0423 opened this issue Nov 14, 2019 · 0 comments
Open

Field - Cannot read property 'children' of undefined #37

Blm0423 opened this issue Nov 14, 2019 · 0 comments

Comments

@Blm0423
Copy link

Blm0423 commented Nov 14, 2019

I think this will happen even with other components, but it is Field (line 70) that I tried to use now. Error occurs by just having the component on the page.
The error stopped the svelte-router from working properly!

Uncaught (in promise) TypeError: Cannot read property 'children' of undefined

  $: {
    if (grouped) fieldType = 'is-grouped'
    else if (mounted) {
      const childNodes = Array.prototype.filter.call(**el.children**, c => !([labelEl, messageEl].includes(c)))
      if (childNodes.length > 1 && addons) {
        fieldType = 'has-addons'
      }
    }
  }

Example project: https://github.com/Blm0423/svelma-router-problem.git

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