Skip to content

RDDT0001: Rolldown Logs Directory Not Found

Package: @vitejs/devtools-rolldown

Message

Rolldown logs directory .rolldown not found, you might want to run build with build.rolldownOptions.devtools enabled first.

Cause

When the Rolldown DevTools plugin initializes, it looks for the .rolldown directory inside node_modules (checking both the project cwd and process.cwd()). This directory is where Rolldown writes its build logs and debug output. If neither location contains a .rolldown directory, this warning is emitted because the plugin has no data to display.

This typically happens when:

  • You have not yet run a build with Rolldown devtools output enabled.
  • The node_modules directory was cleaned or reinstalled without re-running a build.
  • The project cwd does not match the expected root (e.g., running from a different directory).

Fix

  1. Enable devtools output in your Vite/Rolldown config:

    ts
    export default defineConfig({
      build: {
        rolldownOptions: {
          devtools: true
        }
      }
    })
  2. Run a build so Rolldown produces its log files into node_modules/.rolldown/.

  3. Start the devtools again. The warning should no longer appear.

Source

packages/rolldown/src/node/rpc/utils.ts

Released under the MIT License.