Skip to content

rolldown panicked in Read-only file system #495

@Akiyamka

Description

@Akiyamka

Describe the bug

I have a big monorepo project that utilizes Bazel to run build commands. Some of them build JS applications. It works fine with the default Vite build that uses Rollup, but crashes after I switch it to Rolldown.

Outside of Bazel it works perfectly fine, but inside of it rolldown crashes with next error:

thread 'tokio-runtime-worker' (26) panicked at /home/runner/work/rolldown/rolldown/crates/rolldown/src/bundler.rs:240:37:
called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
stack backtrace:
   0:     0x7f00d90af542 - <unknown>
   1:     0x7f00d87a1caf - <unknown>
   2:     0x7f00d90af09f - <unknown>
   3:     0x7f00d90af3a3 - <unknown>
   4:     0x7f00d90aec6f - <unknown>
   5:     0x7f00d90d40f8 - <unknown>
   6:     0x7f00d90d4059 - <unknown>
   7:     0x7f00d90d404c - <unknown>
   8:     0x7f00d82fdb1f - <unknown>
   9:     0x7f00d82fe2f5 - <unknown>
  10:     0x7f00d8735d89 - <unknown>
  11:     0x7f00d873c142 - <unknown>
  12:     0x7f00d85a379b - <unknown>
  13:     0x7f00d865a7df - <unknown>
  14:     0x7f00d9101f64 - <unknown>
  15:     0x7f00d90ff95e - <unknown>
  16:     0x7f00d90fe5e6 - <unknown>
  17:     0x7f00d90f3ba8 - <unknown>
  18:     0x7f00d90fe279 - <unknown>
  19:     0x7f00d90da6b1 - <unknown>
  20:     0x7f00dc791f54 - start_thread
  21:     0x7f00dc81532c - __GI___clone3
  22:                0x0 - <unknown>
✗ Build failed in 24.35s
error during build:
Panic in async function
Error: Panic in async function

Inside the Bazel sandbox filesystem**,** the source files have restrictions - they are read-only.

But it shouldn't be a problem (at least rollup didn't crash under the same conditions).

I suspect that rollup tries to read something but by mistake opens the file with both write and read permissions instead of read-only permissions.

Is there a way to get more debug information that could indicate which specific file Rollup is trying to open or write to?

Reproduction

Sorry, bazel builds not supported by StackBlitz

Steps to reproduce

Hard to reproduce without understanding what file rollup trying to write. I will add it if someone help me figure out how to find out this.
But basically:

  • create target for vite something like
   vite_bin.vite(
        name = "bundle_dev",
        srcs = PACKAGE_DEPS + VITE_DEPS + configs + [":vite_srcs_export"],
        args = ["build --config vite.config.mts --outDir bundle_dev --mode development"],
        chdir = native.package_name(),
        out_dirs = ["bundle_dev"],
    )

then run bazel build for that target

System Info

System:
    OS: Linux 6.17 Fedora Linux 42 (Workstation Edition)
    CPU: (16) x64 AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
    Memory: 12.87 GB / 27.20 GB
    Container: Yes
    Shell: 5.2.37 - /bin/bash
  Binaries:
    Node: 22.20.0 - /usr/bin/node
    Yarn: 1.22.22 - /home/akiyamka/n/bin/yarn
    npm: 10.9.3 - /usr/bin/npm
    pnpm: 10.18.1 - /home/akiyamka/n/bin/pnpm
    bun: 1.2.23 - /home/akiyamka/.bun/bin/bun
    Deno: 2.4.3 - /home/akiyamka/.local/share/pnpm/deno
  Browsers:
    Chrome: 141.0.7390.122
    Firefox: 144.0
    Firefox Developer Edition: 144.0

Used Package Manager

pnpm

Logs

Click to expand!
 Node: 22.20.0 - /usr/bin/node
    Yarn: 1.22.22 - ~/n/bin/yarn
    npm: 10.9.3 - /usr/bin/npm
    pnpm: 10.18.1 - ~/n/bin/pnpm
    bun: 1.2.23 - ~/.bun/bin/bun
    Deno: 2.4.3 - ~/.local/share/pnpm/deno
  Browsers:
    Chrome: 141.0.7390.122
    Firefox: 144.0
    Firefox Developer Edition: 144.0

╭─ in /app on add-polifiils-for-console✘✘✘
╰─± ./bazel build  --action_env=RUST_BACKTRACE=full //js/apps/console:local
INFO: Invocation ID: 02e5c369-c9d5-4917-ae04-42b20d9d00a6
INFO: Analyzed target //js/apps/console:local (169 packages loaded, 11111 targets configured).
INFO: Found 1 target...
ERROR: /app/js/apps/console/BUILD.bazel:9:19: Vite js/apps/console/bundle_dev failed: (Exit 1): bundle_dev__js_binary failed: error executing command (from target //js/apps/console:bundle_dev)
  (cd ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project && \
  exec env - \
    BAZEL_BINDIR=bazel-out/k8-fastbuild/bin \
    BAZEL_BUILD_FILE_PATH=js/apps/console/BUILD.bazel \
    BAZEL_COMPILATION_MODE=fastbuild \
    BAZEL_PACKAGE=js/apps/console \
    BAZEL_TARGET=//js/apps/console:bundle_dev \
    BAZEL_TARGET_CPU=k8 \
    BAZEL_TARGET_NAME=bundle_dev \
    BAZEL_WORKSPACE=project \
    JS_BINARY__CHDIR=js/apps/console \
    JS_BINARY__PATCH_NODE_FS=1 \
    JS_BINARY__SILENT_ON_SUCCESS=1 \
    JS_BINARY__USE_EXECROOT_ENTRY_POINT=1 \
    PATH=/bin:/usr/bin:/usr/local/bin \
    RUST_BACKTRACE=full \
  bazel-out/k8-opt-exec-2B5CBBC6/bin/js/apps/console/bundle_dev__js_binary_/bundle_dev__js_binary build --config vite.config.mts --outDir bundle_dev --mode development --debug)
# Configuration: 2dd5d294b7359b09670c305072de99b312a1f76d061ff9f40796d0bd184ecc44
# Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
2025-11-06T16:40:59.709Z vite:config config file loaded in 86.27ms
You or a plugin you are using have set `optimizeDeps.esbuildOptions` but this option is now deprecated. Vite now uses Rolldown to optimize the dependencies. Please use `optimizeDeps.rollupOptions` instead.
2025-11-06T16:40:59.716Z vite:env loading env files: [
  '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/.env',
  '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/.env.local',
  '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/.env.development',
  '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/.env.development.local'
]
2025-11-06T16:40:59.717Z vite:env env files loaded in 0.78ms
2025-11-06T16:40:59.717Z vite:env using resolved env: { MASKED }
2025-11-06T16:40:59.728Z vite:config using resolved config: {
  server: {
    port: 8082,
    strictPort: false,
    host: undefined,
    allowedHosts: [],
    https: undefined,
    open: true,
    proxy: undefined,
    cors: {
      origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/
    },
    headers: {},
    warmup: { clientFiles: [], ssrFiles: [] },
    middlewareMode: false,
    fs: {
      strict: true,
      deny: [ '.env', '.env.*', '*.{crt,pem}', '**/.git/**' ],
      allow: [
        '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
        '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/client'
      ]
    },
    preTransformRequests: true,
    perEnvironmentStartEndDuringDev: false,
    perEnvironmentWatchChangeDuringDev: false,
    sourcemapIgnoreList: [Function: isInNodeModules]
  },
  build: {
    target: [ 'chrome107', 'edge107', 'firefox104', 'safari16' ],
    polyfillModulePreload: true,
    modulePreload: { polyfill: true },
    outDir: 'bundle_dev',
    assetsDir: 'assets',
    assetsInlineLimit: 4096,
    sourcemap: true,
    terserOptions: {},
    rolldownOptions: { platform: 'browser', onwarn: [Function: onwarn] },
    commonjsOptions: { include: [ /node_modules/ ], extensions: [ '.js', '.cjs' ] },
    dynamicImportVarsOptions: { warnOnError: true, exclude: [ /node_modules/ ] },
    write: true,
    emptyOutDir: null,
    copyPublicDir: true,
    license: false,
    manifest: false,
    lib: false,
    ssrManifest: false,
    ssrEmitAssets: false,
    reportCompressedSize: true,
    chunkSizeWarningLimit: 500,
    watch: null,
    cssCodeSplit: true,
    minify: 'oxc',
    rollupOptions: { platform: 'browser', onwarn: [Function: onwarn] },
    ssr: false,
    emitAssets: true,
    createEnvironment: [Function: createEnvironment],
    cssTarget: [ 'chrome107', 'edge107', 'firefox104', 'safari16' ],
    cssMinify: true
  },
  define: {
    'process.env.NODE_ENV': '"development"',
    'process.env.REACT_APP_SC_DISABLE_SPEEDY': '"true"',
    'process.env.SC_DISABLE_SPEEDY': '"true"'
  },
  plugins: [
    'vite:watch-package-data',
    'builtin:alias',
    'vite:react-babel',
    'vite:react-refresh',
    'native:modulepreload-polyfill',
    'vite:resolve-builtin:get-environment',
    'vite:resolve-builtin',
    'vite:html-inline-proxy',
    'vite:css',
    'native:transform',
    'builtin:json',
    'builtin:wasm-helper',
    'vite:worker',
    'vite:asset',
    'aliases',
    'adnz-react-pdf-plugin',
    'builtin:wasm-fallback',
    'vite:define',
    'vite:css-post',
    'vite:build-html',
    'vite:worker-import-meta-url',
    'vite:asset-import-meta-url',
    'vite:force-amd-wrap-require',
    'vite:force-systemjs-wrap-complete',
    'vite:prepare-out-dir',
    'vite:rollup-options-plugins',
    'native:dynamic-import-vars',
    'builtin:import-glob',
    'vite:build-import-analysis',
    'native:import-analysis-build',
    'vite:terser',
    'vite:license',
    'vite:manifest',
    'vite:ssr-manifest',
    'native:reporter',
    'builtin:load-fallback'
  ],
  mode: 'development',
  configFile: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/vite.config.mts',
  worker: {
    format: 'iife',
    plugins: '() => plugins',
    rollupOptions: {},
    rolldownOptions: {}
  },
  optimizeDeps: {
    include: [ 'react', 'react/jsx-dev-runtime', 'react/jsx-runtime' ],
    exclude: [],
    needsInterop: [],
    rollupOptions: [Getter/Setter],
    extensions: [],
    disabled: undefined,
    holdUntilCrawlEnd: true,
    force: false,
    noDiscovery: false,
    esbuildOptions: { jsx: 'automatic', preserveSymlinks: false },
    rolldownOptions: { resolve: { symlinks: true }, output: { topLevelVar: true } }
  },
  ssr: {
    target: 'node',
    optimizeDeps: {
      esbuildOptions: { preserveSymlinks: false },
      include: [],
      exclude: [],
      needsInterop: [],
      rollupOptions: { resolve: { symlinks: true }, output: { topLevelVar: true } },
      extensions: [],
      holdUntilCrawlEnd: true,
      force: false,
      noDiscovery: true,
      rolldownOptions: { resolve: { symlinks: true }, output: { topLevelVar: true } }
    },
    external: [],
    noExternal: [],
    resolve: {
      conditions: [ 'module', 'node', 'development|production' ],
      externalConditions: [ 'node', 'module-sync' ]
    }
  },
  esbuild: {
    jsxDev: false,
    charset: 'utf8',
    legalComments: 'none',
    jsx: 'automatic',
    jsxImportSource: undefined
  },
  resolve: {
    externalConditions: [ 'node', 'module-sync' ],
    extensions: [
      '.mjs',  '.js',
      '.mts',  '.ts',
      '.jsx',  '.tsx',
      '.json'
    ],
    dedupe: [ 'react', 'react-dom' ],
    noExternal: [],
    external: [],
    preserveSymlinks: false,
    tsconfigPaths: false,
    alias: [
      {
        find: /^\/?@vite\/env/,
        replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/clie
      },
      {
        find: /^\/?@vite\/client/,
        replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/clie
      }
    ],
    mainFields: [ 'browser', 'module', 'jsnext:main', 'jsnext' ],
    conditions: [ 'module', 'browser', 'development|production' ],
    builtins: []
  },
  environments: {
    client: {
      define: {
        'process.env.NODE_ENV': '"development"',
        'process.env.REACT_APP_SC_DISABLE_SPEEDY': '"true"',
        'process.env.SC_DISABLE_SPEEDY': '"true"'
      },
      resolve: {
        externalConditions: [ 'node', 'module-sync' ],
        extensions: [
          '.mjs',  '.js',
          '.mts',  '.ts',
          '.jsx',  '.tsx',
          '.json'
        ],
        dedupe: [ 'react', 'react-dom' ],
        noExternal: [],
        external: [],
        preserveSymlinks: false,
        tsconfigPaths: false,
        alias: [
          {
            find: /^\/?@vite\/env/,
            replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/
          },
          {
            find: /^\/?@vite\/client/,
            replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/
          }
        ],
        mainFields: [ 'browser', 'module', 'jsnext:main', 'jsnext' ],
        conditions: [ 'module', 'browser', 'development|production' ],
        builtins: []
      },
      keepProcessEnv: false,
      consumer: 'client',
      optimizeDeps: {
        include: [ 'react', 'react/jsx-dev-runtime', 'react/jsx-runtime' ],
        exclude: [],
        needsInterop: [],
        rollupOptions: [Getter/Setter],
        extensions: [],
        disabled: undefined,
        holdUntilCrawlEnd: true,
        force: false,
        noDiscovery: false,
        esbuildOptions: { jsx: 'automatic', preserveSymlinks: false },
        rolldownOptions: { resolve: { symlinks: true }, output: { topLevelVar: true } }
      },
      dev: {
        warmup: [],
        sourcemap: { js: true },
        sourcemapIgnoreList: [Function: isInNodeModules],
        preTransformRequests: true,
        createEnvironment: [Function: defaultCreateClientDevEnvironment],
        recoverable: true,
        moduleRunnerTransform: false
      },
      build: {
        target: [ 'chrome107', 'edge107', 'firefox104', 'safari16' ],
        polyfillModulePreload: true,
        modulePreload: { polyfill: true },
        outDir: 'bundle_dev',
        assetsDir: 'assets',
        assetsInlineLimit: 4096,
        sourcemap: true,
        terserOptions: {},
        rolldownOptions: { platform: 'browser', onwarn: [Function: onwarn] },
        commonjsOptions: { include: [ /node_modules/ ], extensions: [ '.js', '.cjs' ] },
        dynamicImportVarsOptions: { warnOnError: true, exclude: [ /node_modules/ ] },
        write: true,
        emptyOutDir: null,
        copyPublicDir: true,
        license: false,
        manifest: false,
        lib: false,
        ssrManifest: false,
        ssrEmitAssets: false,
        reportCompressedSize: true,
        chunkSizeWarningLimit: 500,
        watch: null,
        cssCodeSplit: true,
        minify: 'oxc',
        rollupOptions: { platform: 'browser', onwarn: [Function: onwarn] },
        ssr: false,
        emitAssets: true,
        createEnvironment: [Function: createEnvironment],
        cssTarget: [ 'chrome107', 'edge107', 'firefox104', 'safari16' ],
        cssMinify: true
      },
      plugins: [
        {
          name: 'vite:watch-package-data',
          buildStart: [Function: buildStart],
          buildEnd: [Function: buildEnd],
          watchChange: [Function: watchChange]
        },
        BuiltinPlugin {
          name: 'builtin:alias',
          _options: {
            entries: [
              {
                find: /^\/?@vite\/env/,
                replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/d
              },
              {
                find: /^\/?@vite\/client/,
                replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/d
              }
            ]
          }
        },
        {
          name: 'vite:react-babel',
          enforce: 'pre',
          config: [Function: config],
          configResolved: [Function: configResolved],
          transform: [AsyncFunction: transform]
        },
        {
          name: 'vite:react-refresh',
          enforce: 'pre',
          config: [Function: config],
          resolveId: [Function: resolveId],
          load: [Function: load],
          transformIndexHtml: [Function: transformIndexHtml]
        },
        BuiltinPlugin {
          name: 'builtin:module-preload-polyfill',
          _options: { isServer: false }
        },
        {
          name: 'vite:resolve-builtin:get-environment',
          buildStart: [Function: buildStart],
          perEnvironmentStartEndDuringDev: true
        },
        BuiltinPlugin {
          name: 'builtin:vite-resolve',
          _options: {
            resolveOptions: {
              isBuild: true,
              isProduction: true,
              asSrc: true,
              preferRelative: false,
              isRequire: undefined,
              root: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
              scan: false,
              mainFields: [ 'browser', 'module', 'jsnext:main', 'jsnext', 'main' ],
              conditions: [ 'module', 'browser', 'development|production' ],
              externalConditions: [ 'node', 'module-sync' ],
              extensions: [
                '.mjs',  '.js',
                '.mts',  '.ts',
                '.jsx',  '.tsx',
                '.json'
              ],
              tryIndex: true,
              tryPrefix: undefined,
              preserveSymlinks: false,
              tsconfigPaths: false
            },
            environmentConsumer: 'client',
            environmentName: 'client',
            builtins: [],
            external: [],
            noExternal: [],
            dedupe: [ 'react', 'react-dom' ],
            legacyInconsistentCjsInterop: undefined,
            finalizeBareSpecifier: undefined,
            finalizeOtherSpecifiers: undefined,
            resolveSubpathImports: [Function: resolveSubpathImports]
          },
          load: [AsyncFunction (anonymous)],
          resolveId: [AsyncFunction (anonymous)],
          transform: [AsyncFunction (anonymous)],
          watchChange: [AsyncFunction (anonymous)],
          perEnvironmentWatchChangeDuringDev: true
        },
        {
          name: 'vite:html-inline-proxy',
          resolveId: {
            filter: { id: /[?&]html-proxy\b/ },
            handler: [Function: handler]
          },
          load: {
            filter: { id: /[?&]html-proxy\b/ },
            handler: [Function: handler]
          }
        },
        {
          name: 'vite:css',
          buildStart: [Function: buildStart],
          buildEnd: [Function: buildEnd],
          load: {
            filter: {
              id: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/
            },
            handler: [AsyncFunction: handler]
          },
          transform: {
            filter: {
              id: {
                include: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,
                exclude: [
                  /[?&]commonjs-proxy/,
                  /[?&](?:worker|sharedworker|raw|url)\b/
                ]
              }
            },
            handler: [AsyncFunction: handler]
          }
        },
        BuiltinPlugin {
          name: 'builtin:transform',
          _options: {
            include: [ /\.(m?ts|[jt]sx)$/ ],
            exclude: [ /\.js$/ ],
            jsxRefreshInclude: undefined,
            jsxRefreshExclude: undefined,
            isServerConsumer: false,
            jsxInject: undefined,
            transformOptions: {
              jsx: { development: false, runtime: 'automatic' },
              sourcemap: true
            }
          }
        },
        BuiltinPlugin {
          name: 'builtin:json',
          _options: { namedExports: true, stringify: 'auto', minify: true },
          load: [AsyncFunction (anonymous)],
          resolveId: [AsyncFunction (anonymous)],
          transform: [AsyncFunction (anonymous)],
          watchChange: [AsyncFunction (anonymous)]
        },
        BuiltinPlugin {
          name: 'builtin:wasm-helper',
          _options: { decodedBase: '/' }
        },
        {
          name: 'vite:worker',
          buildStart: [Function: buildStart],
          load: {
            filter: { id: /(?:\?|&)(worker|sharedworker)(?:&|$)/ },
            handler: [AsyncFunction: handler]
          },
          transform: {
            filter: { id: /(?:\?|&)worker_file&type=(\w+)(?:&|$)/ },
            handler: [AsyncFunction: handler]
          },
          renderChunk: [Function: renderChunk],
          generateBundle: [Function: generateBundle],
          watchChange: [Function: watchChange]
        },
        {
          name: 'vite:asset',
          perEnvironmentStartEndDuringDev: true,
          buildStart: [Function: buildStart],
          resolveId: {
            filter: {
              id: [
                /(\?|&)url(?:&|$)/,
                /\.(apng|bmp|png|jpe?g|jfif|pjpeg|pjp|gif|svg|ico|webp|avif|cur|jxl|mp4|webm|ogg|mp3|wav|flac|aac|opus|mov|m4a|vtt|woff2?|eot|ttf|otf|webmanifest|pdf|txt)(\?.*)?$/i
              ]
            },
            handler: [Function: handler]
          },
          load: {
            filter: {
              id: {
                include: [
                  /(\?|&)raw(?:&|$)/,
                  /(\?|&)url(?:&|$)/,
                  /\.(apng|bmp|png|jpe?g|jfif|pjpeg|pjp|gif|svg|ico|webp|avif|cur|jxl|mp4|webm|ogg|mp3|wav|flac|aac|opus|mov|m4a|vtt|woff2?|eot|ttf|otf|webmanifest|pdf|txt)(\?.*)?$/i
                ],
                exclude: /^\0/
              }
            },
            handler: [AsyncFunction: handler]
          },
          renderChunk: [Function: renderChunk],
          generateBundle: [Function: generateBundle]
        },
        {
          name: 'aliases',
          configResolved: [Function: configResolved],
          resolveId: [Function: resolveId]
        },
        {
          name: 'adnz-react-pdf-plugin',
          configResolved: [Function: configResolved],
          buildStart: [AsyncFunction: buildStart],
          configureServer: [Function: configureServer],
          writeBundle: [AsyncFunction: writeBundle]
        },
        BuiltinPlugin {
          name: 'builtin:wasm-fallback',
          _options: undefined,
          load: [AsyncFunction (anonymous)],
          resolveId: [AsyncFunction (anonymous)],
          transform: [AsyncFunction (anonymous)],
          watchChange: [AsyncFunction (anonymous)]
        },
        { name: 'vite:define', options: [Function: options] },
        {
          name: 'vite:css-post',
          renderStart: [Function: renderStart],
          transform: {
            filter: {
              id: {
                include: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,
                exclude: [
                  /[?&]commonjs-proxy/,
                  /[?&](?:worker|sharedworker|raw|url)\b/
                ]
              }
            },
            handler: [AsyncFunction: handler]
          },
          renderChunk: [AsyncFunction: renderChunk],
          augmentChunkHash: [Function: augmentChunkHash],
          generateBundle: [AsyncFunction: generateBundle]
        },
        {
          name: 'vite:build-html',
          transform: {
            filter: { id: /\.html$/ },
            handler: [AsyncFunction: handler]
          },
          generateBundle: [AsyncFunction: generateBundle]
        },
        {
          name: 'vite:worker-import-meta-url',
          applyToEnvironment: [Function: applyToEnvironment],
          transform: {
            filter: {
              code: /new\s+(?:Worker|SharedWorker)\s*\(\s*new\s+URL.+?import\.meta\.url/s
            },
            handler: [AsyncFunction: handler]
          }
        },
        {
          name: 'vite:asset-import-meta-url',
          applyToEnvironment: [Function: applyToEnvironment],
          transform: {
            filter: {
              id: {
                exclude: [
                  /^vite\/preload\-helper\.js$/,
                  /^\/home\/user\/\.cache\/bazel\/_bazel_user\/bcd6c9a231e9b9bd6cc6a0a65a6b2c92\/sandbox\/linux\-sandbox\/12416\/execroot\/project\/bazel\-out\/k8\-fastbuild\/bin\/node_modules\/\.aspect_rules_js\/rolldown\-vite@7\.2\.0_798603117\/node_modules\/ro
                ]
              },
              code: /new\s+URL.+import\.meta\.url/s
            },
            handler: [AsyncFunction: handler]
          }
        },
        { name: 'vite:force-amd-wrap-require' },
        { name: 'vite:force-systemjs-wrap-complete' },
        {
          name: 'vite:prepare-out-dir',
          options: [Function: options],
          renderStart: { order: 'pre', handler: [Function: handler] }
        },
        BuiltinPlugin {
          name: 'builtin:dynamic-import-vars',
          _options: {
            include: undefined,
            exclude: [ /node_modules/ ],
            resolver: [Function: resolver]
          }
        },
        BuiltinPlugin {
          name: 'builtin:import-glob',
          _options: {
            root: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
            restoreQueryExtension: false
          }
        },
        {
          name: 'vite:build-import-analysis',
          renderChunk: [Function: renderChunk],
          generateBundle: [Function: generateBundle]
        },
        BuiltinPlugin {
          name: 'builtin:build-import-analysis',
          _options: {
            preloadCode: `const scriptRel = 'modulepreload';const assetsURL = function(dep) { return "/"+dep };const seen = {};export const __vitePreload = function preload(baseModule, deps, importerUrl) {\n` +
              '\tlet promise = Promise.resolve();\n' +
              '\tif (__VITE_IS_MODERN__ && deps && deps.length > 0) {\n' +
              '\t\tconst links = document.getElementsByTagName("link");\n' +
              '\t\tconst cspNonceMeta = document.querySelector("meta[property=csp-nonce]");\n' +
              '\t\tconst cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");\n' +
              '\t\tfunction allSettled(promises$2) {\n' +
              '\t\t\treturn Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({\n' +
              '\t\t\t\tstatus: "fulfilled",\n' +
              '\t\t\t\tvalue: value$1\n' +
              '\t\t\t}), (reason) => ({\n' +
              '\t\t\t\tstatus: "rejected",\n' +
              '\t\t\t\treason\n' +
              '\t\t\t}))));\n' +
              '\t\t}\n' +
              '\t\tpromise = allSettled(deps.map((dep) => {\n' +
              '\t\t\tdep = assetsURL(dep, importerUrl);\n' +
              '\t\t\tif (dep in seen) return;\n' +
              '\t\t\tseen[dep] = true;\n' +
              '\t\t\tconst isCss = dep.endsWith(".css");\n' +
              '\t\t\tconst cssSelector = isCss ? "[rel=\\"stylesheet\\"]" : "";\n' +
              '\t\t\tif (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {\n' +
              '\t\t\t\tconst link$1 = links[i$1];\n' +
              '\t\t\t\tif (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;\n' +
              '\t\t\t}\n' +
              '\t\t\telse if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;\n' +
              '\t\t\tconst link = document.createElement("link");\n' +
              '\t\t\tlink.rel = isCss ? "stylesheet" : scriptRel;\n' +
              '\t\t\tif (!isCss) link.as = "script";\n' +
              '\t\t\tlink.crossOrigin = "";\n' +
              '\t\t\tlink.href = dep;\n' +
              '\t\t\tif (cspNonce) link.setAttribute("nonce", cspNonce);\n' +
              '\t\t\tdocument.head.appendChild(link);\n' +
              '\t\t\tif (isCss) return new Promise((res, rej) => {\n' +
              '\t\t\t\tlink.addEventListener("load", res);\n' +
              '\t\t\t\tlink.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));\n' +
              '\t\t\t});\n' +
              '\t\t}));\n' +
              '\t}\n' +
              '\tfunction handlePreloadError(err$2) {\n' +
              '\t\tconst e$1 = new Event("vite:preloadError", { cancelable: true });\n' +
              '\t\te$1.payload = err$2;\n' +
              '\t\twindow.dispatchEvent(e$1);\n' +
              '\t\tif (!e$1.defaultPrevented) throw err$2;\n' +
              '\t}\n' +
              '\treturn promise.then((res) => {\n' +
              '\t\tfor (const item of res || []) {\n' +
              '\t\t\tif (item.status !== "rejected") continue;\n' +
              '\t\t\thandlePreloadError(item.reason);\n' +
              '\t\t}\n' +
              '\t\treturn baseModule().catch(handlePreloadError);\n' +
              '\t});\n' +
              '}',
            insertPreload: true,
            optimizeModulePreloadRelativePaths: false,
            renderBuiltUrl: false,
            isRelativeBase: false
          }
        },
        {
          name: 'vite:terser',
          applyToEnvironment: [Function: applyToEnvironment],
          renderChunk: [AsyncFunction: renderChunk],
          closeBundle: [Function: closeBundle]
        },
        {
          name: 'vite:license',
          generateBundle: [AsyncFunction: generateBundle]
        },
        BuiltinPlugin {
          name: 'builtin:reporter',
          _options: {
            isTty: false,
            isLib: false,
            assetsDir: 'assets/',
            chunkLimit: 500,
            shouldLogInfo: true,
            reportCompressedSize: true,
            warnLargeChunks: true
          }
        },
        BuiltinPlugin {
          name: 'builtin:load-fallback',
          _options: undefined
        }
      ],
      optimizeDepsPluginNames: []
    },
    ssr: {
      define: {
        'process.env.NODE_ENV': '"development"',
        'process.env.REACT_APP_SC_DISABLE_SPEEDY': '"true"',
        'process.env.SC_DISABLE_SPEEDY': '"true"'
      },
      resolve: {
        externalConditions: [ 'node', 'module-sync' ],
        extensions: [
          '.mjs',  '.js',
          '.mts',  '.ts',
          '.jsx',  '.tsx',
          '.json'
        ],
        dedupe: [ 'react', 'react-dom' ],
        noExternal: [],
        external: [],
        preserveSymlinks: false,
        tsconfigPaths: false,
        alias: [
          {
            find: /^\/?@vite\/env/,
            replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/
          },
          {
            find: /^\/?@vite\/client/,
            replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/dist/
          }
        ],
        mainFields: [ 'module', 'jsnext:main', 'jsnext' ],
        conditions: [ 'module', 'node', 'development|production' ],
        builtins: [
          '_http_agent',         '_http_client',        '_http_common',
          '_http_incoming',      '_http_outgoing',      '_http_server',
          '_stream_duplex',      '_stream_passthrough', '_stream_readable',
          '_stream_transform',   '_stream_wrap',        '_stream_writable',
          '_tls_common',         '_tls_wrap',           'assert',
          'assert/strict',       'async_hooks',         'buffer',
          'child_process',       'cluster',             'console',
          'constants',           'crypto',              'dgram',
          'diagnostics_channel', 'dns',                 'dns/promises',
          'domain',              'events',              'fs',
          'fs/promises',         'http',                'http2',
          'https',               'inspector',           'inspector/promises',
          'module',              'net',                 'os',
          'path',                'path/posix',          'path/win32',
          'perf_hooks',          'process',             'punycode',
          'querystring',         'readline',            'readline/promises',
          'repl',                'stream',              'stream/consumers',
          'stream/promises',     'stream/web',          'string_decoder',
          'sys',                 'timers',              'timers/promises',
          'tls',                 'trace_events',        'tty',
          'url',                 'util',                'util/types',
          'v8',                  'vm',                  'wasi',
          'worker_threads',      'zlib',                /^node:/,
          /^bun:/
        ]
      },
      keepProcessEnv: true,
      consumer: 'server',
      optimizeDeps: {
        include: [],
        exclude: [],
        needsInterop: [],
        rollupOptions: [Getter/Setter],
        extensions: [],
        disabled: undefined,
        holdUntilCrawlEnd: true,
        force: false,
        noDiscovery: true,
        rolldownOptions: { resolve: { symlinks: true }, output: { topLevelVar: true } },
        esbuildOptions: { preserveSymlinks: false }
      },
      dev: {
        warmup: [],
        sourcemap: { js: true },
        sourcemapIgnoreList: [Function: isInNodeModules],
        preTransformRequests: false,
        createEnvironment: [Function: defaultCreateDevEnvironment],
        recoverable: false,
        moduleRunnerTransform: true
      },
      build: {
        target: [ 'chrome107', 'edge107', 'firefox104', 'safari16' ],
        polyfillModulePreload: true,
        modulePreload: { polyfill: true },
        outDir: 'bundle_dev',
        assetsDir: 'assets',
        assetsInlineLimit: 4096,
        sourcemap: true,
        terserOptions: {},
        rolldownOptions: { platform: 'node', onwarn: [Function: onwarn] },
        commonjsOptions: { include: [ /node_modules/ ], extensions: [ '.js', '.cjs' ] },
        dynamicImportVarsOptions: { warnOnError: true, exclude: [ /node_modules/ ] },
        write: true,
        emptyOutDir: null,
        copyPublicDir: true,
        license: false,
        manifest: false,
        lib: false,
        ssrManifest: false,
        ssrEmitAssets: false,
        reportCompressedSize: true,
        chunkSizeWarningLimit: 500,
        watch: null,
        cssCodeSplit: true,
        minify: false,
        rollupOptions: { platform: 'node', onwarn: [Function: onwarn] },
        ssr: true,
        emitAssets: true,
        createEnvironment: [Function: createEnvironment],
        cssTarget: [ 'chrome107', 'edge107', 'firefox104', 'safari16' ],
        cssMinify: 'lightningcss'
      },
      plugins: [
        {
          name: 'vite:watch-package-data',
          buildStart: [Function: buildStart],
          buildEnd: [Function: buildEnd],
          watchChange: [Function: watchChange]
        },
        BuiltinPlugin {
          name: 'builtin:alias',
          _options: {
            entries: [
              {
                find: /^\/?@vite\/env/,
                replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/d
              },
              {
                find: /^\/?@vite\/client/,
                replacement: '/@fs~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/[email protected]_798603117/node_modules/rolldown-vite/d
              }
            ]
          }
        },
        {
          name: 'vite:react-babel',
          enforce: 'pre',
          config: [Function: config],
          configResolved: [Function: configResolved],
          transform: [AsyncFunction: transform]
        },
        {
          name: 'vite:react-refresh',
          enforce: 'pre',
          config: [Function: config],
          resolveId: [Function: resolveId],
          load: [Function: load],
          transformIndexHtml: [Function: transformIndexHtml]
        },
        BuiltinPlugin {
          name: 'builtin:module-preload-polyfill',
          _options: { isServer: true }
        },
        {
          name: 'vite:resolve-builtin:get-environment',
          buildStart: [Function: buildStart],
          perEnvironmentStartEndDuringDev: true
        },
        BuiltinPlugin {
          name: 'builtin:vite-resolve',
          _options: {
            resolveOptions: {
              isBuild: true,
              isProduction: true,
              asSrc: true,
              preferRelative: false,
              isRequire: undefined,
              root: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
              scan: false,
              mainFields: [ 'module', 'jsnext:main', 'jsnext', 'main' ],
              conditions: [ 'module', 'node', 'development|production' ],
              externalConditions: [ 'node', 'module-sync' ],
              extensions: [
                '.mjs',  '.js',
                '.mts',  '.ts',
                '.jsx',  '.tsx',
                '.json'
              ],
              tryIndex: true,
              tryPrefix: undefined,
              preserveSymlinks: false,
              tsconfigPaths: false
            },
            environmentConsumer: 'server',
            environmentName: 'ssr',
            builtins: [
              '_http_agent',
              '_http_client',
              '_http_common',
              '_http_incoming',
              '_http_outgoing',
              '_http_server',
              '_stream_duplex',
              '_stream_passthrough',
              '_stream_readable',
              '_stream_transform',
              '_stream_wrap',
              '_stream_writable',
              '_tls_common',
              '_tls_wrap',
              'assert',
              'assert/strict',
              'async_hooks',
              'buffer',
              'child_process',
              'cluster',
              'console',
              'constants',
              'crypto',
              'dgram',
              'diagnostics_channel',
              'dns',
              'dns/promises',
              'domain',
              'events',
              'fs',
              'fs/promises',
              'http',
              'http2',
              'https',
              'inspector',
              'inspector/promises',
              'module',
              'net',
              'os',
              'path',
              'path/posix',
              'path/win32',
              'perf_hooks',
              'process',
              'punycode',
              'querystring',
              'readline',
              'readline/promises',
              'repl',
              'stream',
              'stream/consumers',
              'stream/promises',
              'stream/web',
              'string_decoder',
              'sys',
              'timers',
              'timers/promises',
              'tls',
              'trace_events',
              'tty',
              'url',
              'util',
              'util/types',
              'v8',
              'vm',
              'wasi',
              'worker_threads',
              'zlib',
              /^node:/,
              /^bun:/
            ],
            external: [],
            noExternal: [],
            dedupe: [ 'react', 'react-dom' ],
            legacyInconsistentCjsInterop: undefined,
            finalizeBareSpecifier: undefined,
            finalizeOtherSpecifiers: undefined,
            resolveSubpathImports: [Function: resolveSubpathImports]
          },
          load: [AsyncFunction (anonymous)],
          resolveId: [AsyncFunction (anonymous)],
          transform: [AsyncFunction (anonymous)],
          watchChange: [AsyncFunction (anonymous)],
          perEnvironmentWatchChangeDuringDev: true
        },
        {
          name: 'vite:html-inline-proxy',
          resolveId: {
            filter: { id: /[?&]html-proxy\b/ },
            handler: [Function: handler]
          },
          load: {
            filter: { id: /[?&]html-proxy\b/ },
            handler: [Function: handler]
          }
        },
        {
          name: 'vite:css',
          buildStart: [Function: buildStart],
          buildEnd: [Function: buildEnd],
          load: {
            filter: {
              id: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/
            },
            handler: [AsyncFunction: handler]
          },
          transform: {
            filter: {
              id: {
                include: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,
                exclude: [
                  /[?&]commonjs-proxy/,
                  /[?&](?:worker|sharedworker|raw|url)\b/
                ]
              }
            },
            handler: [AsyncFunction: handler]
          }
        },
        BuiltinPlugin {
          name: 'builtin:transform',
          _options: {
            include: [ /\.(m?ts|[jt]sx)$/ ],
            exclude: [ /\.js$/ ],
            jsxRefreshInclude: undefined,
            jsxRefreshExclude: undefined,
            isServerConsumer: true,
            jsxInject: undefined,
            transformOptions: {
              jsx: { development: false, runtime: 'automatic' },
              sourcemap: true
            }
          }
        },
        BuiltinPlugin {
          name: 'builtin:json',
          _options: { namedExports: true, stringify: 'auto', minify: true },
          load: [AsyncFunction (anonymous)],
          resolveId: [AsyncFunction (anonymous)],
          transform: [AsyncFunction (anonymous)],
          watchChange: [AsyncFunction (anonymous)]
        },
        BuiltinPlugin {
          name: 'builtin:wasm-helper',
          _options: { decodedBase: '/' }
        },
        {
          name: 'vite:worker',
          buildStart: [Function: buildStart],
          load: {
            filter: { id: /(?:\?|&)(worker|sharedworker)(?:&|$)/ },
            handler: [AsyncFunction: handler]
          },
          transform: {
            filter: { id: /(?:\?|&)worker_file&type=(\w+)(?:&|$)/ },
            handler: [AsyncFunction: handler]
          },
          renderChunk: [Function: renderChunk],
          generateBundle: [Function: generateBundle],
          watchChange: [Function: watchChange]
        },
        {
          name: 'vite:asset',
          perEnvironmentStartEndDuringDev: true,
          buildStart: [Function: buildStart],
          resolveId: {
            filter: {
              id: [
                /(\?|&)url(?:&|$)/,
                /\.(apng|bmp|png|jpe?g|jfif|pjpeg|pjp|gif|svg|ico|webp|avif|cur|jxl|mp4|webm|ogg|mp3|wav|flac|aac|opus|mov|m4a|vtt|woff2?|eot|ttf|otf|webmanifest|pdf|txt)(\?.*)?$/i
              ]
            },
            handler: [Function: handler]
          },
          load: {
            filter: {
              id: {
                include: [
                  /(\?|&)raw(?:&|$)/,
                  /(\?|&)url(?:&|$)/,
                  /\.(apng|bmp|png|jpe?g|jfif|pjpeg|pjp|gif|svg|ico|webp|avif|cur|jxl|mp4|webm|ogg|mp3|wav|flac|aac|opus|mov|m4a|vtt|woff2?|eot|ttf|otf|webmanifest|pdf|txt)(\?.*)?$/i
                ],
                exclude: /^\0/
              }
            },
            handler: [AsyncFunction: handler]
          },
          renderChunk: [Function: renderChunk],
          generateBundle: [Function: generateBundle]
        },
        {
          name: 'aliases',
          configResolved: [Function: configResolved],
          resolveId: [Function: resolveId]
        },
        {
          name: 'adnz-react-pdf-plugin',
          configResolved: [Function: configResolved],
          buildStart: [AsyncFunction: buildStart],
          configureServer: [Function: configureServer],
          writeBundle: [AsyncFunction: writeBundle]
        },
        BuiltinPlugin {
          name: 'builtin:wasm-fallback',
          _options: undefined,
          load: [AsyncFunction (anonymous)],
          resolveId: [AsyncFunction (anonymous)],
          transform: [AsyncFunction (anonymous)],
          watchChange: [AsyncFunction (anonymous)]
        },
        { name: 'vite:define', options: [Function: options] },
        {
          name: 'vite:css-post',
          renderStart: [Function: renderStart],
          transform: {
            filter: {
              id: {
                include: /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,
                exclude: [
                  /[?&]commonjs-proxy/,
                  /[?&](?:worker|sharedworker|raw|url)\b/
                ]
              }
            },
            handler: [AsyncFunction: handler]
          },
          renderChunk: [AsyncFunction: renderChunk],
          augmentChunkHash: [Function: augmentChunkHash],
          generateBundle: [AsyncFunction: generateBundle]
        },
        {
          name: 'vite:build-html',
          transform: {
            filter: { id: /\.html$/ },
            handler: [AsyncFunction: handler]
          },
          generateBundle: [AsyncFunction: generateBundle]
        },
        { name: 'vite:force-amd-wrap-require' },
        { name: 'vite:force-systemjs-wrap-complete' },
        {
          name: 'vite:prepare-out-dir',
          options: [Function: options],
          renderStart: { order: 'pre', handler: [Function: handler] }
        },
        BuiltinPlugin {
          name: 'builtin:dynamic-import-vars',
          _options: {
            include: undefined,
            exclude: [ /node_modules/ ],
            resolver: [Function: resolver]
          }
        },
        BuiltinPlugin {
          name: 'builtin:import-glob',
          _options: {
            root: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
            restoreQueryExtension: false
          }
        },
        {
          name: 'vite:build-import-analysis',
          renderChunk: [Function: renderChunk],
          generateBundle: [Function: generateBundle]
        },
        BuiltinPlugin {
          name: 'builtin:build-import-analysis',
          _options: {
            preloadCode: `const scriptRel = 'modulepreload';const assetsURL = function(dep) { return "/"+dep };const seen = {};export const __vitePreload = function preload(baseModule, deps, importerUrl) {\n` +
              '\tlet promise = Promise.resolve();\n' +
              '\tif (__VITE_IS_MODERN__ && deps && deps.length > 0) {\n' +
              '\t\tconst links = document.getElementsByTagName("link");\n' +
              '\t\tconst cspNonceMeta = document.querySelector("meta[property=csp-nonce]");\n' +
              '\t\tconst cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");\n' +
              '\t\tfunction allSettled(promises$2) {\n' +
              '\t\t\treturn Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({\n' +
              '\t\t\t\tstatus: "fulfilled",\n' +
              '\t\t\t\tvalue: value$1\n' +
              '\t\t\t}), (reason) => ({\n' +
              '\t\t\t\tstatus: "rejected",\n' +
              '\t\t\t\treason\n' +
              '\t\t\t}))));\n' +
              '\t\t}\n' +
              '\t\tpromise = allSettled(deps.map((dep) => {\n' +
              '\t\t\tdep = assetsURL(dep, importerUrl);\n' +
              '\t\t\tif (dep in seen) return;\n' +
              '\t\t\tseen[dep] = true;\n' +
              '\t\t\tconst isCss = dep.endsWith(".css");\n' +
              '\t\t\tconst cssSelector = isCss ? "[rel=\\"stylesheet\\"]" : "";\n' +
              '\t\t\tif (!!importerUrl) for (let i$1 = links.length - 1; i$1 >= 0; i$1--) {\n' +
              '\t\t\t\tconst link$1 = links[i$1];\n' +
              '\t\t\t\tif (link$1.href === dep && (!isCss || link$1.rel === "stylesheet")) return;\n' +
              '\t\t\t}\n' +
              '\t\t\telse if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;\n' +
              '\t\t\tconst link = document.createElement("link");\n' +
              '\t\t\tlink.rel = isCss ? "stylesheet" : scriptRel;\n' +
              '\t\t\tif (!isCss) link.as = "script";\n' +
              '\t\t\tlink.crossOrigin = "";\n' +
              '\t\t\tlink.href = dep;\n' +
              '\t\t\tif (cspNonce) link.setAttribute("nonce", cspNonce);\n' +
              '\t\t\tdocument.head.appendChild(link);\n' +
              '\t\t\tif (isCss) return new Promise((res, rej) => {\n' +
              '\t\t\t\tlink.addEventListener("load", res);\n' +
              '\t\t\t\tlink.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));\n' +
              '\t\t\t});\n' +
              '\t\t}));\n' +
              '\t}\n' +
              '\tfunction handlePreloadError(err$2) {\n' +
              '\t\tconst e$1 = new Event("vite:preloadError", { cancelable: true });\n' +
              '\t\te$1.payload = err$2;\n' +
              '\t\twindow.dispatchEvent(e$1);\n' +
              '\t\tif (!e$1.defaultPrevented) throw err$2;\n' +
              '\t}\n' +
              '\treturn promise.then((res) => {\n' +
              '\t\tfor (const item of res || []) {\n' +
              '\t\t\tif (item.status !== "rejected") continue;\n' +
              '\t\t\thandlePreloadError(item.reason);\n' +
              '\t\t}\n' +
              '\t\treturn baseModule().catch(handlePreloadError);\n' +
              '\t});\n' +
              '}',
            insertPreload: false,
            optimizeModulePreloadRelativePaths: false,
            renderBuiltUrl: false,
            isRelativeBase: false
          }
        },
        {
          name: 'vite:license',
          generateBundle: [AsyncFunction: generateBundle]
        },
        BuiltinPlugin {
          name: 'builtin:reporter',
          _options: {
            isTty: false,
            isLib: false,
            assetsDir: 'assets/',
            chunkLimit: 500,
            shouldLogInfo: true,
            reportCompressedSize: true,
            warnLargeChunks: false
          }
        },
        BuiltinPlugin {
          name: 'builtin:load-fallback',
          _options: undefined
        }
      ],
      optimizeDepsPluginNames: []
    }
  },
  configFileDependencies: [
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/defaults/define.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/log.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/libDevServerPlugin.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/utils.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/aliases.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/presets/bannerAd.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/tsAliases.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/presets/cdnLib.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/reactpdfPlugin.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/takeFromBazelOut/getBazeluOutBinDir.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/takeFromBazelOut/getFileStat.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/plugins/takeFromBazelOut/index.js',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/vite-config/index.ts',
    '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/vite.config.mts'
  ],
  inlineConfig: {
    root: undefined,
    base: undefined,
    mode: 'development',
    configFile: 'vite.config.mts',
    configLoader: undefined,
    logLevel: undefined,
    clearScreen: undefined,
    build: {
      outDir: 'bundle_dev',
      rolldownOptions: undefined,
      rollupOptions: [Getter/Setter]
    },
    worker: { rolldownOptions: undefined, rollupOptions: [Getter/Setter] },
    optimizeDeps: { rolldownOptions: undefined, rollupOptions: [Getter/Setter] },
    ssr: {
      optimizeDeps: { rolldownOptions: undefined, rollupOptions: [Getter/Setter] }
    }
  },
  root: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
  base: '/',
  decodedBase: '/',
  rawBase: '/',
  publicDir: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/public',
  cacheDir: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/.vite',
  command: 'build',
  isWorker: false,
  mainConfig: null,
  bundleChain: [],
  isProduction: true,
  css: {
    transformer: 'postcss',
    preprocessorMaxWorkers: true,
    devSourcemap: false
  },
  json: { namedExports: true, stringify: 'auto' },
  oxc: {
    jsxInject: undefined,
    include: undefined,
    exclude: undefined,
    jsx: { development: false, runtime: 'automatic' }
  },
  builder: undefined,
  preview: {
    port: 4173,
    strictPort: false,
    host: undefined,
    allowedHosts: [],
    https: undefined,
    open: true,
    proxy: undefined,
    cors: {
      origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/
    },
    headers: {}
  },
  envDir: '~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/sandbox/linux-sandbox/12416/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console',
  env: {
    <MASKED>
  },
  assetsInclude: [Function: assetsInclude],
  rawAssetsInclude: [],
  logger: {
    hasWarned: true,
    info: [Function: info],
    warn: [Function: warn],
    warnOnce: [Function: warnOnce],
    error: [Function: error],
    clearScreen: [Function: clearScreen],
    hasErrorLogged: [Function: hasErrorLogged]
  },
  packageCache: Map(0) { set: [Function (anonymous)] },
  appType: 'spa',
  experimental: {
    importGlobRestoreExtension: false,
    renderBuiltUrl: undefined,
    hmrPartialAccept: false,
    enableNativePlugin: 'v1'
  },
  future: undefined,
  dev: {
    warmup: [],
    sourcemap: { js: true },
    sourcemapIgnoreList: [Function: isInNodeModules],
    preTransformRequests: false,
    createEnvironment: [Function: defaultCreateDevEnvironment],
    recoverable: false,
    moduleRunnerTransform: false
  },
  webSocketToken: 'wmvhoBJw3PCG',
  getSortedPlugins: [Function: getSortedPlugins],
  getSortedPluginHooks: [Function: getSortedPluginHooks],
  createResolver: [Function: createResolver],
  fsDenyGlob: [Function: arrayMatcher],
  safeModulePaths: Set(0) {},
  nativePluginEnabledLevel: 1,
  [Symbol(vite:resolved-config)]: true
}
2025-11-06T16:41:00.031Z vite:resolve 45.69ms CircularXXWeb-Book.woff -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-Book.woff
2025-11-06T16:41:00.031Z vite:resolve 45.88ms CircularXXWeb-Book.woff2 -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-Book.woff2
2025-11-06T16:41:00.031Z vite:resolve 45.94ms CircularXXWeb-BookItalic.woff -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-BookItalic.woff
2025-11-06T16:41:00.032Z vite:resolve 46.00ms CircularXXWeb-BookItalic.woff2 -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-BookItalic.woff2
2025-11-06T16:41:00.032Z vite:resolve 46.08ms CircularXXWeb-Medium.woff -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-Medium.woff
2025-11-06T16:41:00.032Z vite:resolve 46.22ms CircularXXWeb-Medium.woff2 -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-Medium.woff2
2025-11-06T16:41:00.032Z vite:resolve 46.28ms CircularXXWeb-MediumItalic.woff -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-MediumItalic.woff
2025-11-06T16:41:00.032Z vite:resolve 46.32ms CircularXXWeb-MediumItalic.woff2 -> ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/assets/fonts/CircularXXWeb-MediumItalic.woff2
[BABEL] Note: The code generator has deoptimised the styling of ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/libs/ui/src/V2/Elements/Images/NotFound.js as it exceeds the max of 500KB.
[plugin builtin:reporter]
(!) ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/scenes/Sales/containers/Promotions/pages/PromotionMailTemplate/index.ts is dynamically imported by ~/.cache/bazelt/k8-fastbuild/bin/js/apps/console/src/scenes/Sales/containers/Promotions/index.ts, dynamic import will not move module into another chunk.

[plugin builtin:reporter]
(!) ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/scenes/Sales/containers/Tasks/pages/TaskTables/index.tsx is dynamically imported by ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/scenes/Sales/Sales.ts but also statically imported by ~/.cache/bazel/_bazel_user/bcd6c9a231e9b9bd6cc6a0a65a6b2c92/execroot/project/bazel-out/k8-fastbuild/bin/js/apps/console/src/scenes/Sales/containers/Tasks/index.ts, dynamic import will not move module into another chunk.


thread 'tokio-runtime-worker' (18) panicked at /home/runner/work/rolldown/rolldown/crates/rolldown/src/bundler.rs:240:37:
called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
stack backtrace:
   0:     0x7fbcf22af542 - <unknown>
   1:     0x7fbcf19a1caf - <unknown>
   2:     0x7fbcf22af09f - <unknown>
   3:     0x7fbcf22af3a3 - <unknown>
   4:     0x7fbcf22aec6f - <unknown>
   5:     0x7fbcf22d40f8 - <unknown>
   6:     0x7fbcf22d4059 - <unknown>
   7:     0x7fbcf22d404c - <unknown>
   8:     0x7fbcf14fdb1f - <unknown>
   9:     0x7fbcf14fe2f5 - <unknown>
  10:     0x7fbcf1935d89 - <unknown>
  11:     0x7fbcf193c142 - <unknown>
  12:     0x7fbcf17a379b - <unknown>
  13:     0x7fbcf185a7df - <unknown>
  14:     0x7fbcf2301f64 - <unknown>
  15:     0x7fbcf22ff95e - <unknown>
  16:     0x7fbcf22fe5e6 - <unknown>
  17:     0x7fbcf22f3ba8 - <unknown>
  18:     0x7fbcf22fe279 - <unknown>
  19:     0x7fbcf22da6b1 - <unknown>
  20:     0x7fbd1927ff54 - start_thread
  21:     0x7fbd1930332c - __GI___clone3
  22:                0x0 - <unknown>
✗ Build failed in 24.27s
error during build:
Panic in async function
Error: Panic in async function
rolldown-vite v7.2.0 building client environment for development...
transforming...components,constants.ts,contexts,form,helpers.ts,hooks,index.tsx,types.ts
✓ 12736 modules transformed.
rendering chunks...
Target //js/apps/console:local failed to build
INFO: Elapsed time: 29.614s, Critical Path: 28.54s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully

Validations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions