I got an answer from Svelte discord community, that automatic migration Svelte4 to 5 causes that issue, and tutorial content was aparrently automatically migrated, hence doesnt work as intended.