automation-stack / node-machine-id

Unique machine (desktop) id (no admin privileges required)
MIT License
582 stars 62 forks source link

Does this work in a browser? #25

Closed sgehrman closed 7 years ago

sgehrman commented 7 years ago

I was using electron-machine-id and updated to this thinking it would work in chrome?

Does it still require electron or NW?

ERROR in ./node_modules/node-machine-id/dist/index.js Module not found: Error: Can't resolve 'child_process' in 'f:\Github\electron-store\node_modules\node-machine-id\dist' @ ./node_modules/node-machine-id/dist/index.js 1:82-106 1:18348-18372 @ ./src/js/helper.js @ ./src/purchase-entry.js @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/purchase-entry.js

automation-stack commented 7 years ago

@sgehrman module can't work with browser, but have full support for electron and NW. In your case it seems to me is webpack configuration issue