Bug Description
Version 0.6.1 published to npm has an incomplete build and cannot be executed. Critical source files are missing from the published package.
Error
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/username/.npm/_npx/.../node_modules/chrome-devtools-mcp/build/src/browser.js' imported from /Users/username/.npm/_npx/.../node_modules/chrome-devtools-mcp/build/src/main.js
Steps to Reproduce
npx -y chrome-devtools-mcp@latest
Root Cause
The published package is missing the following files that are imported by main.js:
build/src/browser.js (imported at main.js:13)
build/src/cli.js (imported at main.js:14)
Checking the published package structure:
ls ~/.npm/_npx/.../node_modules/chrome-devtools-mcp/build/src/
Shows these files are not present, while main.js attempts to import them:
import { ensureBrowserConnected, ensureBrowserLaunched } from './browser.js';
import { parseArguments } from './cli.js';
Impact
- Users cannot run version 0.6.1 via npx
- The package is completely non-functional
Workaround
Use version 0.6.0 which works correctly:
npx -y chrome-devtools-mcp@0.6.0
Likely Cause
The build script runs:
tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts
The post-build.ts script likely failed or didn't complete properly during the npm publish process, resulting in an incomplete build/src directory.
Environment
- Node.js: v22.19.0
- Platform: macOS
- Tested versions:
- 0.6.1: ❌ Broken
- 0.6.0: ✅ Works
- 0.5.1: ✅ Works
Bug Description
Version 0.6.1 published to npm has an incomplete build and cannot be executed. Critical source files are missing from the published package.
Error
Steps to Reproduce
Root Cause
The published package is missing the following files that are imported by
main.js:build/src/browser.js(imported at main.js:13)build/src/cli.js(imported at main.js:14)Checking the published package structure:
ls ~/.npm/_npx/.../node_modules/chrome-devtools-mcp/build/src/Shows these files are not present, while
main.jsattempts to import them:Impact
Workaround
Use version 0.6.0 which works correctly:
Likely Cause
The build script runs:
The
post-build.tsscript likely failed or didn't complete properly during the npm publish process, resulting in an incompletebuild/srcdirectory.Environment