Skip to content

[Devtools] Build broken due to structural changes in chrome-devtools npm package #1012

@yswtrue

Description

@yswtrue

I clone latest code from git.
and make devtools get errors.

To Reproduce

  1. clone from git
  2. cd dashboard
  3. npm install
  4. run make dashboard
  5. run make devtools

Version information

  • OS: manjaro
  • Node: v17.3.0
  • npm: 6.14.6

Additional context

➜  proxy.py git:(177689c) ✗ make devtools 
pushd dashboard && npm run devtools && popd
~/Code/proxy.py/dashboard ~/Code/proxy.py

> proxy.py@1.0.0 devtools /home/yswtrue/Code/proxy.py/dashboard
> npm run build-devtools && node tsbuild/devtools.js


> proxy.py@1.0.0 build-devtools /home/yswtrue/Code/proxy.py/dashboard
> tsc --target es5 --outDir tsbuild src/core/devtools.ts

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'chrome-devtools-frontend/front_end/inspector.json'
Require stack:
- /home/yswtrue/Code/proxy.py/dashboard/tsbuild/devtools.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.resolve (node:internal/modules/cjs/helpers:108:19)
    at setUpDevTools (/home/yswtrue/Code/proxy.py/dashboard/tsbuild/devtools.js:24:47)
    at Object.<anonymous> (/home/yswtrue/Code/proxy.py/dashboard/tsbuild/devtools.js:33:1)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/yswtrue/Code/proxy.py/dashboard/tsbuild/devtools.js' ]
}

Node.js v17.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! proxy.py@1.0.0 devtools: `npm run build-devtools && node tsbuild/devtools.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the proxy.py@1.0.0 devtools script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/yswtrue/.npm/_logs/2022-01-19T20_03_49_875Z-debug.log
make: *** [Makefile:173:devtools] 错误 1

Screenshots
If applicable, add screenshots to help explain your problem.

Metadata

Metadata

Assignees

Labels

BugBug report in proxy server

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions