Skip to content

Cannot read properties of null (reading 'length') after updating svelte from 5.38.1 to 5.38.2 #16640

@ocavue

Description

@ocavue

Describe the bug

After updating svelte from 5.38.1 to 5.38.2, I get the following error

Uncaught TypeError: Cannot read properties of null (reading 'length')
    at flush_queued_effects (chunk-4EMMLRQK.js?v=ca8f2691:2242:31)
    at _Batch.process (chunk-4EMMLRQK.js?v=ca8f2691:1961:7)
    at flush_effects (chunk-4EMMLRQK.js?v=ca8f2691:2206:13)
    at _Batch.flush (chunk-4EMMLRQK.js?v=ca8f2691:2075:7)
    at chunk-4EMMLRQK.js?v=ca8f2691:2135:17
    at dequeue (chunk-4EMMLRQK.js?v=ca8f2691:1837:3)

Reproduction

Open the following two links in the browser

In the second example, the following error will show in the console:

Uncaught TypeError: Cannot read properties of null (reading 'length')
    at flush_queued_effects (chunk-4EMMLRQK.js?v=ee419023:2242:31)
    at _Batch.process (chunk-4EMMLRQK.js?v=ee419023:1961:7)
    at flush_effects (chunk-4EMMLRQK.js?v=ee419023:2206:13)
    at _Batch.flush (chunk-4EMMLRQK.js?v=ee419023:2075:7)
    at chunk-4EMMLRQK.js?v=ee419023:2135:17
    at dequeue (chunk-4EMMLRQK.js?v=ee419023:1837:3)

Logs

N/A

System Info

N/A

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions