You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
since 2.21.3 navigating causes error in bundle.js and forces page reload #13868
After playing around with configuration and adding/removing things, i was not able to determine exactly which part of the project triggers it, i simply decided to rollback to 2.21.2
Is this a known issue or is there any specific configuration group i should look into to try and find a root cause?
Also, the issue seems to happen only in production, it does not occur in dev mode.
Also, it seems client-side JS completely stopped functioning.
Reproduction
I was not able to determine exactly which part of my project causes it.
I run unit tests with jsdom, they started failing with this error upon attempting to upgrade to 2.21.3. Based on the error message, it looks related to this change: #13686
I run unit tests with jsdom, they started failing with this error upon attempting to upgrade to 2.21.3. Based on the error message, it looks related to this change: #13686
Same error with vitest browser tests. Error with 2.21.3 but not 2.21.2.
Managed to reproduce this. The conditions are building an single/inline output app which causes app to not get initialised before the following statement is evaluated (as Elliot pointed out)
Activity
kposborne commentedon Jun 9, 2025
I run unit tests with jsdom, they started failing with this error upon attempting to upgrade to 2.21.3. Based on the error message, it looks related to this change: #13686
bigmac44 commentedon Jun 10, 2025
Same error with vitest browser tests. Error with 2.21.3 but not 2.21.2.
teemingc commentedon Jun 10, 2025
Managed to reproduce this. The conditions are building an single/inline output app which causes app to not get initialised before the following statement is evaluated (as Elliot pointed out)
kit/packages/kit/src/runtime/app/forms.js
Line 9 in 73cc8a5
Fortunately, we can move this away from the top-level and it still gets tree-shaken for server/client.