playwright
playwright copied to clipboard
[Bug]: `[DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized`
Version
tot
Steps to reproduce
Use Node.js 24, run npx playwright install
Expected behavior
no deprecation warnings
Actual behavior
(node:29094) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)
Additional context
We use url.parse in src/server/utils/network.ts, but changing those isn't enough.
Environment
System:
OS: macOS 15.5
CPU: (12) arm64 Apple M3 Pro
Memory: 197.59 MB / 18.00 GB
Binaries:
Node: 24.2.0 - ~/.local/state/fnm_multishells/1424_1750421433339/bin/node
npm: 11.3.0 - ~/.local/state/fnm_multishells/1424_1750421433339/bin/npm
pnpm: 10.6.5 - /opt/homebrew/bin/pnpm
IDEs:
VSCode: 1.101.1 - /opt/homebrew/bin/code
Languages:
Bash: 3.2.57 - /bin/bash
node js 24 related issue I think
same happened for me in next js application
I switched to node 20
folding into https://github.com/microsoft/playwright/issues/36404