facebook / jscodeshift

A JavaScript codemod toolkit.
https://jscodeshift.com
MIT License
9.26k stars 477 forks source link

Update VSCode launch.json debugging configuration in README.md #576

Open saiki987 opened 11 months ago

saiki987 commented 11 months ago

When debugging via the VSCode on Windows 11, I got the following error:

Uncaught SyntaxError C:\~~\node_modules\.bin\jscodeshift:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at internalCompileFunction (internal/vm:73:18)
    at wrapSafe (internal/modules/cjs/loader:1176:20)
    at <anonymous> (internal/modules/cjs/loader:1218:27)
    at <anonymous> (internal/modules/cjs/loader:1308:10)
    at <anonymous> (internal/modules/cjs/loader:1117:32)
    at <anonymous> (internal/modules/cjs/loader:958:12)
    at executeUserEntryPoint (internal/modules/run_main:81:12)
    at <anonymous> (internal/main/run_main_module:23:47)
vm:73

I found the solution here and confirmed the new configuration works correctly.