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

Parsing error: Cannot read properties of null (reading 'end') when using #each without an item #986

Closed
2 tasks done
ariel-salgado opened this issue Jan 1, 2025 · 1 comment

Comments

@ariel-salgado
Copy link

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

9.17.0

What version of eslint-plugin-svelte are you using?

2.46.1

What did you do?

With Svelte Advent they introduced each blocks without an item
This is the example provided in the docs

<div class="chess-board">
	{#each { length: 8 }, rank}
		{#each { length: 8 }, file}
			<div class:black={(rank + file) % 2 === 1}></div>
		{/each}
	{/each}
</div>

What did you expect to happen?

To be valid code

What actually happened?

Throws this error at 0:0:
Parsing error: Cannot read properties of null (reading 'end')

Link to GitHub Repo with Minimal Reproducible Example

REPL

Additional comments

No response

@baseballyama
Copy link
Member

baseballyama commented Jan 1, 2025

I think already fixed by #956
Please use [email protected] before release v3.

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