Error when run demo : SyntaxError: Unexpected token '.'
liudongqing opened this issue · 0 comments
liudongqing commented
Just followed the instruction.
node version is : v12.19.0, got following error
OS: MacOS
> wechaty-puppet-padlocal-demo@0.1.2 demo /Users/Projects/wechaty-puppet-padlocal-demo
> ts-node main.ts
/Users/liudongqing/Projects/wechaty-puppet-padlocal-demo/node_modules/brolog/dist/cjs/src/config.js:33
if (typeof window !== 'undefined' && typeof window?.location?.search === 'string') {
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:931:16)
at Module._compile (internal/modules/cjs/loader.js:979:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)