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.

React Native require error

See original GitHub issue

require('node-uuid') or import uuid form 'node-uuid' results in a Unable to resolve module crypto error.

If I switch out require('crypto') with require('crypto-js'), and specifically include the crypto-js library instead, it works fine. Are we able to look at swapping out crypto with crypto-js?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
eugenehpcommented, Jun 20, 2016

I hope Robert will get time to merge it, meanwhile I created little something as a temporary replacement: https://www.npmjs.com/package/react-native-uuid

2reactions
sibeliuscommented, May 11, 2016

@broofa you should add some contributor if you don’t have much time to merge some PRs or fix some issues

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native: require() with Dynamic String? - Stack Overflow
As i have heard of, react's require() only uses static url not variables, that means that you have to do require('/path/file') , take...
Read more >
Require file dynamically by variable · Issue #6391 - GitHub
I want to require files like: var component = require("myApp/components/" + name); ... I suspect React Native will support import() in a static...
Read more >
Troubleshooting - React Native
If you encounter an error such as npm WARN locking Error: EACCES while using the React Native CLI, try running the following:.
Read more >
Error Boundaries - React
A class component becomes an error boundary if it defines either (or both) of the lifecycle methods static getDerivedStateFromError() or componentDidCatch() .
Read more >
Working with Dynamic Images in React Native - Code Buckets
React Native doesn't deal with dynamic images, only static images. Therefore, you have to front up all the images – you cannot construct...
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