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.

[3.x] React Native: Creating URL objects is not supported yet.

See original GitHub issue

This may be more of a react native issue than normalize-url, but the new 3.x package is not compatible with React Native. I’m getting the follow error:

screen shot 2018-06-05 at 3 35 22 pm

Is there a way to use a fallback to make this work, or do I need to just downgrade the package on native?

Issue Analytics

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

github_iconTop GitHub Comments

17reactions
sindresorhuscommented, Jun 6, 2018

This module is for Node.js. It’s up to you to figure out how to make it work in other environments. Probably easiest to just downgrade.

5reactions
acidfreakocommented, Jul 16, 2018

got the same error on react native while working with web3 socket URL

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating an instance of URL like: `new URL('http ... - GitHub
We use URL to parse URLs and extract information about the hostname, ... ReactNative: Error: Creating URL objects is not supported yet.
Read more >
React native unsupported url (IOS) - Stack Overflow
My URI was working on Android but not IOS with an expo library. I spent days on it, trying a dozen things with...
Read more >
Troubleshooting - React Native
If you added React Native manually to your project, make sure you have included all the relevant dependencies that you are using, like...
Read more >
Invalid Hook Call Warning - React
There are three common reasons you might be seeing it: You might have mismatching versions of React and React DOM. You might be...
Read more >
Configuring links | React Navigation
It's not possible to pass params to the initial screen through the URL. So make sure that your initial route doesn't need any...
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