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 not run on Angular 10 #54

Open
NikolayTodor opened this issue Mar 23, 2021 · 1 comment
Open

Can not run on Angular 10 #54

NikolayTodor opened this issue Mar 23, 2021 · 1 comment

Comments

@NikolayTodor
Copy link

NikolayTodor commented Mar 23, 2021

Implementation

customer-service.component.ts

import * as _ from 'node-machine-id';

ngOnInit(): void { console.log(_);}

package.json

, "browser":{ "child_process": false, "crypto": false }

Error:

Uncaught ReferenceError: process is not defined at Object.<anonymous> (index.js:1) at n (index.js:1) at Object.<anonymous> (index.js:1) at n (index.js:1) at index.js:1 at index.js:1 at index.js:1 at Object.4brq (index.js:1) at __webpack_require__ (bootstrap:84) at Module.kiBU (customer-services.component.ts:3)

@NikolayTodor NikolayTodor changed the title Can not run on Angular Can not run on Angular 10 Mar 23, 2021
@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

2 participants