Error: Can't resolve 'crypto'
See original GitHub issueExpected Behavior
Angular 6 app launches without error
Actual Behavior
Angular 6 app launches with “Can’t resolve ‘crypto’” error
Steps to Reproduce the Problem
-
Create an angular 6 app
-
install fhir-kit-client using npm
-
import fhir-kit-client to component
-
add code to noOnInit() ` public ngOnInit(): void { const Client = require(‘fhir-kit-client’); const iss = this._route.snapshot.queryParams[‘iss’];
const fhirClient = new Client({baseUrl: iss}); … } `
-
start the app using “ng serve”
Specifications
- Version:
- Platform:
- Subsystem:
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Module not found: Error: Can't resolve 'crypto'
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 >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' [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' · Issue #318
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 >Module not found: Error: Can't resolve 'crypto' in '/Users ...
Module not found : Error: Can't resolve 'crypto' in ... I am building a development web 3 project and can't figure out why...
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 Free
Top 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
you are closing #93 because of dupe of #92 and you are closing #92 because of dupe of #93
This should be resolved in 1.4.0 now. Also check out the examples here: https://github.com/Vermonster/fhir-kit-client-examples