Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Bug require('crypto') #167

Open
jrabello opened this issue Nov 26, 2018 · 0 comments
Open

Bug require('crypto') #167

jrabello opened this issue Nov 26, 2018 · 0 comments

Comments

@jrabello
Copy link

Hi,
at file src/other/get-random-values.ts there is the following conditional:

if (typeof process !== 'undefined') {
  const nodeCrypto = require('crypto');

Running angular ng cli this conditional evaluates to true, but we have the following error:

ERROR in /home/jrabelo/codes/cm-codebase/core/node_modules/asmcrypto.js/asmcrypto.all.es8.js
Module not found: Error: Can't resolve 'crypto' in '/home/jrabelo/codes/cm-codebase/core/node_modules/asmcrypto.js'

I think We need to be able to check if crypto exists in current namespace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant