child_process issue in packaged output
Closed this issue · 1 comments
georgeneil commented
In App.tsx
`
const childProcess = require('child_process')
const App = () => {
childProcess.exec('npm -v', (error, stdout, stderr) => {
if (error) {
alert('Error')
return
}
alert(stdout.toString())
})
return (
<>
</>
)
}
`
Working fine in Development mode.
But getting 'Error' alert while running the packaged output ?