jordan
jordan
Explore posts from servers
CDCloudflare Developers
Created by jordan on 8/7/2024 in #pages-help
Remix and Vite - 2 error(s) and 0 warning(s) when compiling Worker.
@Dan 👍 and anyone else who might get stuck... I got help on the Remix discord and my issue was I am importing from remix-node instead of cloudflare. I was doing auth and had: import { createCookieSessionStorage } from "@remix-run/node"; Instead of: import { createCookieSessionStorage } from "@remix-run/cloudflare"; Have a look through your code and make sure you import from @remix-run/cloudflare for anything node related.
5 replies
CDCloudflare Developers
Created by jordan on 8/7/2024 in #pages-help
Remix and Vite - 2 error(s) and 0 warning(s) when compiling Worker.
I had quite a few as well, then I added the wrangler.toml part but these two won't go away. I've always tried to change the compatibility_date to see if that would make a different but it did not :/ I don't think I've done anything too out of the ordinary either. I've followed the remix-auth docs and added prisma and tailwind, so I'm quite confused by the issues I have. I noticed not everything was up to date, so I've updated all my dependencies but still get the same error. I ran npm ls crypto and npm ls stream and have no dependencies relying on this, so I'm not sure what the next steps are 😅
5 replies