Closed vyushin closed 6 years ago
Hi! Can I use XMLHttpRequest with TypeScript?
I tried this code in index.ts file
index.ts
import {XMLHttpRequest} from 'xmlhttprequest'; const request = new XMLHttpRequest();
Got error:
@vyushin if you use webpack, just add
node: { child_process: 'empty', },
to your configuration
@yankouskia, thanks for answer. I removed this package from my project. But I remember your solution. :)
Hi! Can I use XMLHttpRequest with TypeScript?
I tried this code in
index.ts
fileGot error: