-
-
Notifications
You must be signed in to change notification settings - Fork 53
Description
No idea how the TextField could cause this, but I have reproduced it with a minimal example.
This originally happened in a larger SvelteKit app, where I suddently found that the routes with forms in them failed to load. After debugging for a while, I found that replacing TextFields with normal inputs seemed to solve the issue.
To reproduce it, I created a new SvelteKit app with npx sv create, and checked tailwindcss to be included. Then I ran npm install svelte-ux. I then updated tailwind.config.js, but the one on "Getting started" is outdated after the breaking 0.90 changes, so I had to find something that worked from the git repo instead.
I then created two routes: one with a simple input element (just for comparison), and one with a simple TextField element.
The one with the input element (/input) works completely normal. You can load the page, enter text, refresh the page as many times as you want.
The one with the TextField (/textfield) works on first load, but if you refresh it, the page will never stop loading. If you now try to open a new tab, nothing will load (Vite is completely frozen).
I have tried:
- Different versions of node (v18.20.5 and v22.13.1.
- Different versions of vite (5.4.14 and 6.1.0).
- @sveltejs/adapter-auto and @sveltejs/adapter-node.
- Multiple different computers with different OSes (Windows and Ubuntu Server).
- Cleaning the npm cache
- Reinstalling all packages
- Running vite with --force, and running vite with debug logging enabled (no useful messages, everything seems normal until it is frozen).
- Different versions of tailwindcss (3.4.17 and 4.0.0)
- Different versions of svelte-ux (0.77.1, 0.90.0, 0.90.1).
- Different combinations of svelte-ux and tailwindcss versions
- With and without a layout.
- npm run dev, and npm run build + npm run preview (as well as npm run build + running on the production server) gives the exact same results.
Nothing seems to help me. Have I done something very stupid, or is this some obscure bug somewhere?
Here are two different variants of the minimal reproduction:
[email protected], [email protected]
[email protected], [email protected]