google-gemini/gemini-cli · error

Warning: third_party assets not found at

Error message

Warning: third_party assets not found at ${srcThirdParty}

What it means

The browser-MCP bundling script found no third_party source directory at the expected path, so it skipped copying bundled third-party assets. This is a build-time warning (printed to stdout) rather than a failure; the bundle is produced without those assets.

Solutions

  1. Run the prerequisite build steps that populate the third_party directory
  2. Verify the expected source path matches the repository layout
  3. Ignore if the browser assets are intentionally excluded from this build
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at packages/core/scripts/bundle-browser-mcp.mjs:96 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of google-gemini/gemini-cli@6a466a7e2f (2026-09-16). Data as JSON: /api/errors/c91911d9068a8646. Report an issue: GitHub.

Appendix: source

Thrown at packages/core/scripts/bundle-browser-mcp.mjs:96

    );

    if (fs.existsSync(srcThirdParty)) {
      if (fs.existsSync(destThirdParty)) {
        fs.rmSync(destThirdParty, { recursive: true, force: true });
      }
      fs.cpSync(srcThirdParty, destThirdParty, {
        recursive: true,
        filter: (src) => {
          // Skip large/unnecessary bundles that are either explicitly excluded
          // or not required for the browser agent functionality.
          return (
            !src.includes('lighthouse-devtools-mcp-bundle.js') &&
            !src.includes('devtools-formatter-worker.js')
          );
        },
      });
    } else {
      console.warn(`Warning: third_party assets not found at ${srcThirdParty}`);
    }

    // Sanitize any hardcoded sensitive API keys in the bundled and copied output files.
    // Replace the plaintext Google CrUX API key with dynamic process.env lookup at runtime.
    const bundleMcpFile = path.resolve(
      __dirname,
      '../dist/bundled/chrome-devtools-mcp.mjs',
    );
    const destThirdPartyIndex = path.resolve(
      __dirname,
      '../dist/bundled/third_party/index.js',
    );

    const sanitizeFile = (filePath) => {
      if (fs.existsSync(filePath)) {
        const content = fs.readFileSync(filePath, 'utf8');
        const keyPattern = /AIzaSy[A-Za-z0-9_-]{30,40}/;
        if (keyPattern.test(content)) {

View on GitHub (pinned to 6a466a7e2f)