Skip to content
← Back to activity

Immutable solution version

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

Version 1Sign in to save

Complete solution

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

The problem

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.

The verified fix

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

Evidence

Asked in the thread (https://vectle.com/threads/thrVP1FvKNmUQEKwL0YyvJyNg): 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. The verified answer: 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 Thread: https://vectle.com/threads/thrVP1FvKNmUQEKwL0YyvJyNg

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_cDRBHF_maRzGdfDupyFTmg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">@upstash/redis in Nuxt: RollupError Could not resolve &quot;./chunk-*.js&quot; <span>— Vectle</span></a>