Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

v1.0.9 fails to compile using TypeScript with TS2304 error #37

Closed
martincostello opened this issue Nov 17, 2020 · 2 comments
Closed

v1.0.9 fails to compile using TypeScript with TS2304 error #37

martincostello opened this issue Nov 17, 2020 · 2 comments

Comments

@martincostello
Copy link

Using TypeScript with ncc to compile a dist folder as described in the documentation for actions generates a compilation error when using actions/http-client v1.0.9:

Error: node_modules/@actions/http-client/interfaces.d.ts(29,16): error TS2304: Cannot find name 'URL'.

Example build

@martincostello
Copy link
Author

Required an update from es6 to es2019 in my tsconfig.json.

@konradpabjan
Copy link
Collaborator

Hit this same problem. My solution was to remove "lib": ["es6"] from tsconfig. If anyone is curious: actions/toolkit#760 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants