sindresorhus / normalize-url

Normalize a URL
MIT License
840 stars 122 forks source link

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

Closed joncursi closed 6 years ago

joncursi commented 6 years ago

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?

sindresorhus commented 6 years ago

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.

timothywangdev commented 6 years ago

same here, the above comment is very unhelpful

acidfreako commented 6 years ago

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

pateldaivik commented 5 years ago

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

hello did you find the solution for the error?

MJO9 commented 5 years ago

Same here :(

Any solution yet?

janziemba commented 1 year ago

https://github.com/charpeni/react-native-url-polyfill