sveltekit-superforms icon indicating copy to clipboard operation
sveltekit-superforms copied to clipboard

Bug inside package on fully client side SPA

Open zuno90 opened this issue 2 months ago • 1 comments

` node_modules/.pnpm/@[email protected]/node_modules/@vinejs/vine/build/chunk-YXNUTVGP.js:367:48: 367 │ ...const { resolve4, resolve6 } = await import("node:dns/promises"); ╵ ~~~~~~~~~~~~~~~~~~~

at failureErrorWithLog (D:\ZUNO\dadsnetwork\adv-front\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:1467:15)
at D:\ZUNO\dadsnetwork\adv-front\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:926:25
at D:\ZUNO\dadsnetwork\adv-front\node_modules\.pnpm\[email protected]\node_modules\esbuild\lib\main.js:1345:9
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)`

I am using superforms with zod on only SPA but a including dependency @vine/vinejs made an issue above. How can I fix this?

zuno90 avatar Sep 10 '25 08:09 zuno90

This happens if you are on some environment that doesn't support node:dns, or vine is for some reason bundled with your app even though it should not. I recommend testing with the SPA example and see if it works, if it does, compare the projects and see what you can find. Test on different environments too.

ciscoheat avatar Sep 14 '25 12:09 ciscoheat