Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Rejection (TypeError): ipify is not a function #16

Closed
jason-lex opened this issue Dec 29, 2021 · 1 comment
Closed

Unhandled Rejection (TypeError): ipify is not a function #16

jason-lex opened this issue Dec 29, 2021 · 1 comment

Comments

@jason-lex
Copy link

jason-lex commented Dec 29, 2021

Hi when I copy the following code into my create-react-app

`const ipify = require('ipify');

(async () => {
console.log(await ipify({useIPv6: false}));
//=> '82.142.31.236'
})();`

I got the following error in the browser

Unhandled Rejection (TypeError): ipify is not a function

and the error is pointing at (async () => { line

How do I fix this?

@sindresorhus
Copy link
Owner

The tests in this package are succeeding, so this is definitely a problem with your project or Create-React-App.

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

No branches or pull requests

2 participants