-1

I run npm run build than show this error plz tell me the solution

module not found: cant resolve 'child_process' in '/home/fawad/pmc-frontend_master/node_modules/dialog'

I try this npm install child_process and also npm install child_process --legacy-peer-deps but not work this

  • Does this answer your question? [Module not found: Error can't resolve 'child\_process', how to fix?](https://stackoverflow.com/questions/54459442/module-not-found-error-cant-resolve-child-process-how-to-fix) – Brian Tompsett - 汤莱恩 May 24 '23 at 17:44

1 Answers1

0

Try put in package.json this:

"browser":{
"child_process": false
}  

For more look at this Module not found: Error can't resolve 'child_process', how to fix?

dannyRouge
  • 61
  • 5
  • bro I try this "browser":{ "child_process": false } but not solve error plz tell me another way to solve this error – ahmed arain May 24 '23 at 11:26
  • can u edit post and attach full error code? Maybe can explain better and help us to find a solution – dannyRouge May 24 '23 at 11:29
  • Module not found: Error: Can't 'child_process' in '/home/fawad/pmc-frontend-master@6cd9d075e58/node_module/dialog' Bro this error show when i run command npm run build – ahmed arain May 25 '23 at 09:42