sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
78.12k stars 4.08k forks source link

Eslint: value.find is not a function #12491

Closed ottomated closed 1 month ago

ottomated commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

i have the same issue.

it was also reported here: https://github.com/sveltejs/eslint-plugin-svelte/issues/826

dummdidumm commented 1 month ago

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