Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsc throw error Cannot find name 'URL'. #401

Closed
2 of 5 tasks
jk2K opened this issue Jan 10, 2022 · 1 comment · Fixed by #402
Closed
2 of 5 tasks

tsc throw error Cannot find name 'URL'. #401

jk2K opened this issue Jan 10, 2022 · 1 comment · Fixed by #402
Labels
bug Something isn't working needs triage

Comments

@jk2K
Copy link
Contributor

jk2K commented Jan 10, 2022

Description:
I want to debug this project, so I need to convert TypeScript to Javascript first, then use VS code to debug

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

npm: 6.14.8

Repro steps:

git clone https://github.com/actions/setup-node
cd setup-node
npm install
tsc

Expected behavior:
tsc build successfully

Actual behavior:
got error

setup-node git:(main) ✗ node_modules/.bin/tsc
node_modules/@actions/http-client/interfaces.d.ts:29:16 - error TS2304: Cannot find name 'URL'.

29     parsedUrl: URL;
                  ~~~
@jk2K jk2K added bug Something isn't working needs triage labels Jan 10, 2022
@jk2K
Copy link
Contributor Author

jk2K commented Jan 10, 2022

see actions/http-client#37

solution: remove "lib": ["es6"] from tsconfig

@jk2K jk2K closed this as completed Jan 10, 2022
deining pushed a commit to deining/setup-node that referenced this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant