Skip to content

RDDT0004: Invalid Rolldown Session Id

Message

Invalid Rolldown session id "{id}".

Cause

The landing page can rename or delete individual Rolldown DevTools sessions. Each session is stored as a directory under node_modules/.rolldown/<id>, so the session id maps directly to a directory name. This diagnostic is thrown when a rename or delete request carries an id that could escape that directory — an empty value, a path separator (/ or \), or a .. segment.

Example

Calling vite:rolldown:delete-session or vite:rolldown:rename-session with an id such as ../other or a/b.

Fix

Pass a plain session id — a single directory name without path separators or .. segments. The ids returned by vite:rolldown:list-sessions always satisfy this.

Source

Released under the MIT License.