Skip to content
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

Module '"crypto"' has no default export #291

Closed
brianpooe opened this issue Sep 14, 2020 · 5 comments
Closed

Module '"crypto"' has no default export #291

brianpooe opened this issue Sep 14, 2020 · 5 comments
Labels

Comments

@brianpooe
Copy link

brianpooe commented Sep 14, 2020


Screenshot 2020-09-14 at 18 27 04

Expected behaviour
Not throw an error when program starts.

Environment:
Nestjs 7
"openid-client": "^4.1.0",
node v12.18.3

Additional context
Add any other context about the problem here.

  • [x ] the bug is happening on latest openid-client too.
@panva
Copy link
Owner

panva commented Sep 14, 2020

Might be a tooling issue. Based on what's in the issue i can't help, nor can i reproduce.

@brianpooe
Copy link
Author

Thanks for the swift response but not sure what you mean by tooling, this is a nodejs environment and dependencies are built the same throughout its framework counterparts. If it helps this is typescript.

But i noticed your library does support types so not sure what is the issue.

@panva
Copy link
Owner

panva commented Sep 14, 2020

I’m no ts expert but both jose (in its types) and crypto (through @types/node) do have default exports.

Hence me saying this is likely a tooling issue on your end, a tsconfig one maybe?

@panva
Copy link
Owner

panva commented Sep 14, 2020

I've pushed a small change, see if it helps.

@brianpooe
Copy link
Author

I was about to do a pull request for this. Thanks.

@panva panva added bug and removed triage labels Oct 7, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants