fcrozatier
fcrozatier
DDeno
Created by fcrozatier on 5/9/2025 in #help
error: unexpected argument --experimental-network-inspection when trying to debug
I'm using the following vscode launch.json config
{
"name": "deno run",
"request": "launch",
"type": "node",
"runtimeExecutable": "deno",
"cwd": "${workspaceFolder}",
"program": "${file}",
"runtimeArgs": [
"run",
"--unstable",
"--inspect-wait",
"--allow-all"
],
"env": {},
"attachSimplePort": 9229
},
{
"name": "deno run",
"request": "launch",
"type": "node",
"runtimeExecutable": "deno",
"cwd": "${workspaceFolder}",
"program": "${file}",
"runtimeArgs": [
"run",
"--unstable",
"--inspect-wait",
"--allow-all"
],
"env": {},
"attachSimplePort": 9229
},
which has been working fine for the last year, but now I'm getting the following error when trying to do breakpoint debugging with it:
/usr/local/bin/deno --experimental-network-inspection run ./effect-system/run.ts error: unexpected argument '--experimental-network-inspection' found tip: to pass '--experimental-network-inspection' as a value, use '-- --experimental-network-inspection' Usage: deno [OPTIONS] [COMMAND] Process exited with code 1
So it seems something is adding the --experimental-network-inspection flag I've attached a short clip showing the problem. Any ideas how to solve this? Thanks!
11 replies
DDeno
Created by fcrozatier on 1/3/2025 in #help
Installing packages locally with Deno
I want a local copy of a foo js (node) module in my project that I'll be able to serve to the browser directly (no bundling). If I add it with deno add npm:foo then I can reference the module in my code but the browser won't be able to resolve foo. So I would like to know how I can make a local install with Deno (that's not in the global cache but in my local project), so that I just need to serve this folder and add an importmap script to tell the browser how to resolve foo. I could just npm install foo to have it in a local node_modules folder, but there must be a way to do this in Deno? https://docs.deno.com/runtime/reference/cli/add/#options
2 replies