Compilation of javaScript action failed

Hi bro, I do follow this: npm install node-onvif   But when build, I had error: [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve 'dgram' in …. Please support me fix it.  Thank you very much!
1 answers

I believe that dgram is a node module that will only run server side, but you are trying to use it as part of a widget that runs client side. I don’t think the module you are trying to use is designed to run in a browser.