node-network-devtools icon indicating copy to clipboard operation
node-network-devtools copied to clipboard

do not work in next.js

Open KingAmo opened this issue 7 months ago • 1 comments

Describe the bug

live-metrics.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'pageAgent') at m.enable (live-metrics.js:1:6971) at async m.targetAdded (live-metrics.js:1:6233)

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.4
    CPU: (8) arm64 Apple M3
    Memory: 1.23 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.8.1 - /usr/local/bin/npm
    pnpm: 10.7.0 - ~/Library/pnpm/pnpm
    Watchman: 2025.04.28.00 - /opt/homebrew/bin/watchman
  npmPackages:
    node-network-devtools: ^1.0.26 => 1.0.26

Logs

No response

KingAmo avatar May 26 '25 03:05 KingAmo

let me check

GrinZero avatar May 26 '25 04:05 GrinZero

This seems to be a defect caused by a Chrome browser update, and I am trying to fix it

GrinZero avatar Jun 04 '25 03:06 GrinZero

This seems to be a defect caused by a Chrome browser update, and I am trying to fix it

thanks !

KingAmo avatar Jun 04 '25 05:06 KingAmo

Obviously, this is a troublesome issue, so I first sought help from the Chromium developer community. Next, I will try to directly adapt to the network devtools supported after node 22.6.

GrinZero avatar Jun 04 '25 08:06 GrinZero

This issue has been fixed in v1.0.27

GrinZero avatar Jun 19 '25 03:06 GrinZero