Skip to content

Versions >5.1.14 causing TypeError: Illegal invocation error #14292

@Devr-pro

Description

@Devr-pro

Describe the bug

I was on 5.1.16 and after building the app and preview I was getting this Illegal invocation error, tried a lot to debug and found out the cause, rolling back to 5.1.14 makes things right and working again.
(Things were working well on dev server, but breaking on previewing the build)

Reproduction

Repo link

Go to the / route page (The error only seems to be on / route)
https://github.com/Devr-pro/dormster-app/tree/update-svelte-to-5.1.16

Deployed url

Logs

index-client.EUrO2unW.js:1 Uncaught (in promise) TypeError: Illegal invocation
    at R (index-client.EUrO2unW.js:1:3033)
    at wr (index-client.EUrO2unW.js:1:2487)
    at zp (4.DQXZKnv6.js:3:3801)
    at app.CB1Rbgs2.js:2:3955
    at props.C0W6GDie.js:1:2450
    at Xt (index-client.EUrO2unW.js:1:8424)
    at V (index-client.EUrO2unW.js:1:9115)
    at q (index-client.EUrO2unW.js:1:4543)
    at qr (index-client.EUrO2unW.js:1:5566)
    at props.C0W6GDie.js:1:2444

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5625U with Radeon Graphics
    Memory: 3.97 GB / 15.34 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.3 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.46)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    svelte: 5.1.14 => 5.1.14

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions