sveltekit-superforms
sveltekit-superforms copied to clipboard
Bug inside package on fully client side SPA
` 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?
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.