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

Additional installs not mentioned in readme.

Open gerhardcit opened this issue 10 months ago • 0 comments

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?

gerhardcit avatar Apr 09 '24 15:04 gerhardcit