I’m trying to connect to our couchase server (we have a private cluster) using nextjs and always ends with this error:
Error: Could not find native build for platform=darwin, arch=arm64, runtime=node, nodeVersion=20.3.1, sslType=openssl3, webpack=true loaded from /Users/maxidr/Projects/mxhero/insight/.next/server.
Hi @perry ! Yes, I saw your example and it works great. But my problem seems to be when trying to use the bucket in a server-side component (src/app folder)
Hi @maxidr – Are you running w/in a container or moving anything around after you have installed the project dependencies? The error you are seeing indicates that for the specified target (Node.js v20, MacOS, ARM arch, etc.) we cannot find the matching binary. What do you see when you run npm list --depth 1? I would expect a block like below to be seen.
Actually, after looking into things a bit more I am thinking this is related to webpack (error indicates webpack=true). Unfortunately, I am not too familiar w/ front-end applications. Would you be able to provide a minimal example that reproduces the issue? I briefly tried the Couchbase Next.js tutorial and was unable to reproduce the issue (seems to be what you have confirmed as well).