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.

Error: Can't resolve 'crypto'

See original GitHub issue

Expected Behavior

Angular 6 app launches without error

Actual Behavior

Angular 6 app launches with “Can’t resolve ‘crypto’” error

Steps to Reproduce the Problem

  1. Create an angular 6 app

  2. install fhir-kit-client using npm

  3. import fhir-kit-client to component

  4. 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}); … } `

  5. start the app using “ng serve”

Specifications

  • Version:
  • Platform:
  • Subsystem:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
froid1911commented, Mar 26, 2019

you are closing #93 because of dupe of #92 and you are closing #92 because of dupe of #93

0reactions
bkaneycommented, Jul 31, 2019

This should be resolved in 1.4.0 now. Also check out the examples here: https://github.com/Vermonster/fhir-kit-client-examples

Read more comments on GitHub >

github_iconTop 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 >

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