[BUG]WorkPro: ts-node index.ts TSError: ⨯ Unable to compile TypeScript: index.ts:70:19 - error TS2552: Cannot find name 'URL'. Did you mean 'url'? #525
Labels
workpro
Wechaty Puppet Service WorkPro
Please make sure you have read the Wechaty Puppet Service: WorkPro from Wechaty Official Website before you continue writing this issue.
--- YES, I have checked with that already.
Describe the bug
Follow #267 to try the codespace. After command the npm start, it shows up following error log:
$ npm start
/usr/local/share/nvm/versions/node/v20.15.1/lib/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
index.ts:70:19 - error TS2552: Cannot find name 'URL'. Did you mean 'url'?
70 const url = new URL(urlStr);
~~~
index.ts:70:9
70 const url = new URL(urlStr);
~~~
'url' is declared here.
diagnosticCodes: [ 2552 ]
Info
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Shows up the QR-code for logging on with Wecom account.
Screenshots
N/A
The text was updated successfully, but these errors were encountered: