#Code just broke?

5 messages · Page 1 of 1 (latest)

indigo reef
#

I think my code just broke out of now where when I saved one of my changes I got this error:

 ⨯ cloudflare:sockets
Module build failed: UnhandledSchemeError: Reading from "cloudflare:sockets" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "cloudflare:" URIs.
Import trace for requested module:
cloudflare:sockets
./node_modules/.pnpm/[email protected]/node_modules/postgres/cf/polyfills.js
./node_modules/.pnpm/[email protected]/node_modules/postgres/cf/src/index.js
./src/database/schema.ts
./src/lib/auth.ts

I have a really basic project setup with Shadcn, a login route, and next auth and that's it.

cloud condorBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

placid nebula
#

Try deleting .next folder

indigo reef
#

I've figured out the issue but don't know how to resolve it. It's because I'm using NextAuth in the middleware function and get the users authentication status and it's changing it to the serverless cloudlfare worker enviornment but apperently I don't have what it needs?