Skip to content

blerrgh/sveltekit-devalue-not-serializable-repro

Repository files navigation

sveltekit-devalue-not-serializable-repro

Reproduction for sveltejs/kit#8523

Steps to reproduce:

Clone repo

$ npm install

$ npm run dev

Go to http://localhost:5173/, refresh, click the buttons, wait until dependencies are optimized:

11:14:32 AM [vite] ✨ new dependencies optimized: svelte-headless-table
11:14:32 AM [vite] ✨ optimized dependencies changed. reloading

You might get errors at this point, but if not, update package.json and pin devalue to 4.2.2:

"overrides": {
		"devalue": "4.2.2"
	}

$ npm install

Make sure devalue has updated

$ npm list devalue

`-- @sveltejs/[email protected]
  `-- [email protected] overridden

$ npm run dev

Again, refresh and click buttons until you see

11:18:36 AM [vite] ✨ new dependencies optimized: svelte-headless-table
11:18:36 AM [vite] ✨ optimized dependencies changed. reloading

Then, fail() and throw() should produce errors.