Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve 'child_process' in ' \node_modules\node-machine-id\dist' on Angular Electron #41

Open
didiokener opened this issue Jan 2, 2020 · 3 comments

Comments

@didiokener
Copy link

When I implement this package on Angular Electron from https://github.com/maximegris/angular-electron, I get the same error of issue #29, but I am using Angular not Vue.js. I already tried verify if the application is Electron to execute the method machineId only when running on Electron, like, if (isElectron) id = machineIdSync(); But it is running into the same error. Thanks for listening.

@pjebs
Copy link

pjebs commented Jan 17, 2020

I get the same error in the renderer process. I'm not using any front end framework.

I haven't tried it yet, but I'm planning to run node-machine-id in the main process and just pass the data to the render to try and overcome this issue I haven't been able to resolve.

@pjebs
Copy link

pjebs commented Jan 17, 2020

Perhaps related to: #29

@danielehrhardt
Copy link

Use
remote.require('node-machine-id');
import { ElectronService as NgxService } from 'ngx-electron';
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants