typescript code style TS2539:Cannot assign to 'execFile' because it is not a variable

Viewed 1237

I have a code

import * as path from 'path';
import * as globby from 'globby';
import { execFile } from 'child_process';
import * as util from 'util';
//import * as Promise from 'bluebird';
import * as fs from 'fs';

execFile = util.promisify(execFile);

when it compiler to js

show error log like this

Error:(12, 1) TS2539:Cannot assign to 'execFile' because it is not a variable.

what should i rewrite code for fix this in right way, or just keep ingorne it

1 Answers
Related