Skip to content

Eslint: value.find is not a function #12491

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

Closed
ottomated opened this issue Jul 18, 2024 · 3 comments
Closed

Eslint: value.find is not a function #12491

ottomated opened this issue Jul 18, 2024 · 3 comments

Comments

@ottomated
Copy link
Contributor

ottomated commented Jul 18, 2024

Describe the bug

Running eslint on next-190 causes Parsing error: value.find is not a function. This might be caused by #12479 changing attribute nodes to not always be arrays?

Reproduction

Any project will repro

Logs

No response

System Info

npmPackages:
    svelte: ^5.0.0-next.190 => 5.0.0-next.190

Severity

blocking all usage of svelte

@ciscoheat
Copy link

ciscoheat commented Jul 18, 2024

A simple reproduction:

<script lang="ts">
  let error = false;
</script>

<input name="email" aria-invalid={error ? 'true' : undefined} />
2024-07-18 08_31_00-● +page svelte - superforms-examples - Visual Studio Code

@mustafa0x
Copy link
Contributor

mustafa0x commented Jul 18, 2024

i have the same issue.

it was also reported here: sveltejs/eslint-plugin-svelte#826

@dummdidumm
Copy link
Member

Closing in favor of the eslint plugin issue - this needs to be fixed there (PR already opened from what I can see)

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2024
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

4 participants