clerk-sveltekit
clerk-sveltekit copied to clipboard
Additional installs not mentioned in readme.
thx, great sample..
Something the documentation should mention, if you want to build for Cloudflare, these two installs are important.
"@clerk/backend": "^0.32.1",
"@clerk/clerk-js": "^4.61.0"
If you don't, the cloudflare adapter (which I don't know enough about) fails with these errors:
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "node:http"
.svelte-kit/output/server/chunks/hooks.server.js:6:23:
6 │ import require$$0 from "node:http";
╵ ~~~~~~~~~~~
Cannot use "node:http" when deploying to Cloudflare.
✘ [ERROR] Could not resolve "node:https"
.svelte-kit/output/server/chunks/hooks.server.js:7:25:
7 │ import require$$1$1 from "node:https";
╵ ~~~~~~~~~~~~
Cannot use "node:https" when deploying to Cloudflare.
maybe you could explain why?