question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Error: Can't resolve 'crypto' in '....

See original GitHub issue

Im trying to run npm run electron:local right after npm install. It is showing these warnings. But application is successfully launched.

WARNING in ./node_modules/zone.js/dist/zone-mix.js
Module not found: Error: Can't resolve 'crypto' in '/home/chandu/Developer/saira-kiosk/node_modules/zone.js/dist'

WARNING in ./node_modules/zone.js/dist/zone-mix.js
Module not found: Error: Can't resolve 'fs' in '/home/chandu/Developer/saira-kiosk/node_modules/zone.js/dist'

WARNING in ./node_modules/zone.js/dist/zone-mix.js
Module not found: Error: Can't resolve 'timers' in '/home/chandu/Developer/saira-kiosk/node_modules/zone.js/dist'

NOTE: No files are changed since the cloning.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
liuhongbocommented, Jul 17, 2018

i just clone master branch, and did npm run ng:serve:web, those 3 warnings are still there did i miss something?

4reactions
fott1commented, Jun 7, 2018

I tried npm install timers and the warning about timers is now gone. I don’t have a clue about the rest though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'crypto' - Stack Overflow
I ran into a similar issue lately while trying to use another library (tiff.js) in a small project I was experimenting with.
Read more >
Module not found: Error: Can't resolve 'crypto' [Solved]
The error "Module not found: Error: Can't resolve 'crypto'" occurs because there has been a breaking change in Webpack version 5. To solve...
Read more >
Module not found: Error: Can't resolve 'crypto' #318 - GitHub
I have use CRA (create-react-app). react-scripts Version 5.0.0 Error Message: WARNING in ./node_modules/froala-editor/js/plugins.pkgd.min.js ...
Read more >
Can't resolve 'crypto' in node_modules/bson/dist react
The app is running fine but I'm having a problem when I deploy the app to Netlify. I have to configure the deploy...
Read more >
Module not found: Error: Can't resolve 'crypto' in '/Users/user ...
Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found