-
Notifications
You must be signed in to change notification settings - Fork 37
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
Error: Can't resolve 'crypto' #93
Comments
This seems like a dupe of #92. Upon research, this seems to be a bug in Angular (see: https://blog.lysender.com/2018/07/angular-6-cannot-resolve-crypto-fs-net-path-stream-when-building-angular/). Can you confirm the workarounds here work for you? Also see: |
Hi @froid1911 — #93 (this one) is currently open? Not sure what you mean by your comment... In all likelihood we will include instructions on how to adjust the webpack configuration for Angular 6 per the links above. What are your thoughts? |
opsi, thought it got closed. sry for that :-) ........ |
Worked whole afternoon trying to get angular 6 project working. Tried using @angular-builders/custom-webpack. Now ng build works but ng serve still not working. If anyone have a successful angular 6 project using this client js, please let me know. |
I looked at this a bit today. To make requests work on the server for node apps, we use |
I tried following the guide, here, and it seems to work with Angular-7:
|
@foxtree Do you mind to create a sample codes for Anguar 6/7? That would be really helpful. |
This should be resolved in 1.4.0 now. Also check out the examples here: https://github.com/Vermonster/fhir-kit-client-examples |
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
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
The text was updated successfully, but these errors were encountered: