`crypto` does not work in `npm run ng:serve`
See original GitHub issueWhen using randomBytes
from the crypto
package, npm run electron:local
works, but npm run ng:serve
fails with crypto not found
.
Same for npm run start
…
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Module not found: Error: Can't resolve 'crypto' - Stack Overflow
The reason this happens is because when your run ng serve , it bundles up the dependencies you have in your package.json to...
Read more >Error: Digest method not supported when running ng serve ...
It appears that the following resolutions configuration in the project's package.json combined with the preexisting package lock file is causing ...
Read more >What is the difference between an NPM start and an NG serve?
First, NPM is a Node command line tool. One of it's functions is to run scripts you put into the package.json file. Have...
Read more >scripts - npm Docs
Does not run during npm publish , but does run during npm ci and npm install . · Runs BEFORE the package is...
Read more >Npm install not working. I tried updating angular like ... - Reddit
When running npm start, it actually runs ng serve, which is defined as such in your package.json file. The issue you're having is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t know why I’m still using javascript…
For time travellers, I think this makes more sense now: https://github.com/maximegris/angular-electron#use-electron--nodejs--3rd-party-libraries
Thank you very much!
Stupid question… if I want to use
crypto
not directly in aComponent
, but inAnotherClass
, is there a better way than to pass thecrypto
fromElectronService
through theComponent
to myAnotherClass
?