Failed deployment: SvelteKit with `@auth/sveltekit`

Hello! Thanks for looking into this issue. I have a SvelteKit app here: https://github.com/ThangHuuVu/sveltekit-auth-cloudflare The application builds successful, but it keeps failing at this step:
15:49:35.814 Found _worker.js in output directory. Uploading.
15:49:36.719 ✨ Compiled Worker successfully
15:49:36.752 Found _routes.json in output directory. Uploading.
15:49:36.765 Validating asset output directory
15:49:44.015 Success: Assets published!
15:49:45.536 Error: Failed to publish your Function. Got error: Uncaught SyntaxError: The requested module 'node:crypto' does not provide an export named 'constants'
at functionsWorker-0.34080195618780573.js:5:266
15:49:35.814 Found _worker.js in output directory. Uploading.
15:49:36.719 ✨ Compiled Worker successfully
15:49:36.752 Found _routes.json in output directory. Uploading.
15:49:36.765 Validating asset output directory
15:49:44.015 Success: Assets published!
15:49:45.536 Error: Failed to publish your Function. Got error: Uncaught SyntaxError: The requested module 'node:crypto' does not provide an export named 'constants'
at functionsWorker-0.34080195618780573.js:5:266
is it because constants is not supported yet? according to this documentation: https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto/ @auth/sveltekit uses @auth/core which uses jose, where we can find the usage of constants.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server