Open NullVoxPopuli opened 1 year ago
Getting same thing with graphql-yoga because it uses ||=
. This seems like some type of ECMAscript version issue, but I'm not sure why.
2024-07-22T21:18:33.146Z [error]: uncaughtException: Unexpected token '||='
C:\Code\my-app\node_modules\graphql-yoga\cjs\error.js:122
status ||= 200;
^^^
SyntaxError: Unexpected token '||='
at wrapSafe (internal/modules/cjs/loader.js:1029:16)
at Module._compile (internal/modules/cjs/loader.js:1078:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
at Object.<anonymous> (C:\Code\my-app\node_modules\graphql-yoga\cjs\index.js:5:18)
at Module._compile (internal/modules/cjs/loader.js:1114:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
Expected Behavior
This command works
This doesn't
I'm using this silly path because just running
rollup -c
uses a bash script, which is incompatible with clinic / node profilling.Current Behavior
Error received:
Steps to Reproduce (for bugs)
Environment