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.

crypto__default.default.randomFillSync is not a function

See original GitHub issue

Describe the bug

show error message: Uncaught TypeError: crypto__default.default.randomFillSync is not a function built by rollup

How to reproduce

npm install uuid, and build a project by rollup without even though specified a global config

Expected behavior

show error message: Uncaught TypeError: crypto__default.default.randomFillSync is not a function built by rollup

Runtime

  • OS: macOS
  • Runtime: Node.js, Chrome
  • Runtime Version: 14.12.0

Additional information

where is the crypto dependency defined (included in rng.js line.1 ) in this project?

Issue Analytics

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

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

javascript - _crypto.default.randomFillSync is not a function
I try to use notify in my electron project on node server. So i installed node-notifier module in my app folder using the...
Read more >
crypto.randomFillSync is not a function · Issue #2905 - GitHub
Are you requesting a feature or reporting a bug? Yes. What is the current behavior? TypeError: crypto.randomFillSync is not a function
Read more >
"_crypto.default.randomFillSync is not a function" when ...
randomFillSync is not a function". This happens in the Release Stage Task called "SSH" in "inline script" mode, aka. "Run shell inline on...
Read more >
Node.js crypto.randomFillSync() Method - GeeksforGeeks
randomFillSync () method is an inbuilt application programming interface ... It is a number whose default value is (buffer.length – offset).
Read more >
Node.js TypeError: crypto.scryptSync is not a function
js to encrypt a string, you may have encountered the 'scryptSync is not a function' error. This can occur even if you copy...
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