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.
You need to add DOM to the lib array in your tsconfig.json:
"lib": [
"es2018",
"DOM"
],
You could also add "skipLibCheck": true, to your tsconfig.json under compilerOptions.
This will ignore errors that are present in libs under node_modules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With