πŸ‘€ Our most exciting product launch yet πŸš€ Join us May 8th for Sanity Connect

Yarn SyntaxError: Missing ) After Argument List

5 replies
Last updated: Jul 9, 2022
Heyo everyone, does anyone know why I would be getting this error when I am using yarn with the latest preview version?I have been seeing around that people are getting this with pnpm and having it work with npm / yarn, but for me that's not the case.


E:\Projects\test\node_modules\sanity\node_modules\.bin\sanity:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at Object.compileFunction (node:vm:353:18)
    at wrapSafe (node:internal/modules/cjs/loader:1040:15)
    at Module._compile (node:internal/modules/cjs/loader:1076:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:834:12)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (E:\Projects\test\node_modules\sanity\bin\sanity:10:3)
    at Module._compile (node:internal/modules/cjs/loader:1112:14)
Jul 9, 2022, 6:44 AM
Haven't seen that yet with yarn. Can you please log the issue on GitHub? Thanks! πŸ™Œ
Jul 9, 2022, 6:53 AM
Thanks for the speedy response, I put the issue up on github :)
Jul 9, 2022, 7:05 AM
Which operating system do you use? πŸ™‚
Jul 9, 2022, 9:12 AM
I use Windows 10
Jul 9, 2022, 2:44 PM
Jul 9, 2022, 4:32 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?