Encountering Issues with Next.js, Wrangler, and OpenNext Integration ([ERROR] Could not resolve "XX"

Hi everyone, I'm encountering an issue while trying to run a Next.js project on Cloudflare Workers. Here's my setup: Next.js: 14.2.5 Wrangler: 3.83.0 OpenNext: 0.2.1 The build step runs successfully: Success: Build command completed However, when I run the development server with wrangler dev --port 8771, I get the following errors: [ERROR] Could not resolve "uuid" [ERROR] Could not resolve "jose" It seems like there are missing dependencies or something's off during the resolution process. I've tried reinstalling packages and rebuilding, but the issue persists. Question: How can I resolve these dependency issues, and is there any recommended way to ensure compatibility between these versions for Cloudflare Workers? Thanks for any advice! 🙏
No description
2 Replies
skycover
skycoverOP3mo ago
edit: I had use firebase auth to verify token in nextjs api
lettucebaran
lettucebaran5w ago
I don't understand the edit. 1. what caused the issue? 2. How did you fix it (e.g., I removed A package, and rewrote the logic using B package).
pnpm why @smithy/middleware-retry

@aws-sdk/client-s3 3.598.0
@opennextjs/cloudflare 0.3.3
pnpm why @smithy/middleware-retry

@aws-sdk/client-s3 3.598.0
@opennextjs/cloudflare 0.3.3

Did you find this page helpful?