@upstash/redis in Nuxt: RollupError Could not resolve "./chunk-*.js"

Using a recent @upstash/redis in Nuxt, the build fails with RollupError: Could not resolve "./chunk-SMBYCQIJ.js" from "./chunk-SMBYCQIJ.js?commonjs-external" and the client can't initialize. Cause: after the packaging switch from deno to bun+tsup, the export map in the published package was inverted. Pinning to 1.20.0 did not work for everyone, so upgrading was the only reliable path.

Upgrade to @upstash/redis v1.28.2. The inverted export map was fixed there, and the reporter confirmed the build succeeds. Pinning to 1.20.0 does not work for everyone, so the v1.28.2 upgrade is the fix. Source: https://github.com/upstash/redis-js/issues/774

Source: https://github.com/upstash/redis-js/issues/774