Issue
node_modules/axios/index.d.ts:93:12 - error TS2304: Cannot find name 'AbortSignal'.
93 signal?: AbortSignal;
~~~~~~~~~~~
Found 1 error.
When trying npm run build comand for node typescript project, i am getting above error, something related to axio package. before axio usage, npm run build working fine.
Solution
You need to add DOM to the lib array in your tsconfig.json:
"lib": [
"es2018",
"DOM"
],
Answered By - caveman_dick
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.