# This site can’t be reachedCheck if there is a typo in undefined-- Please help!

**URL:** <https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [November 24, 2022, 2:29am UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056 "2022-11-24T02:29:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![loladekasumu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/loladekasumu/32/30629_2.png) [@loladekasumu](https://community.auth0.com/u/loladekasumu)\
**Post date:** [November 24, 2022, 2:29am UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056/1 "2022-11-24T02:29:57Z")

</div>

I’m trying to implement auth0 into my program.  
This is my index.js file , I couldn’t add the code here. So I created an index2.js file for the code.

 ![Screenshot 2022-11-23 at 9.24.10 PM](https://global.discourse-cdn.com/auth0/original/3X/d/f/dfd4c88d1f9dd94d3e98ce699c3fa29001ca5499.jpeg)  
This is index2.js  
 ![Screenshot 2022-11-23 at 9.21.42 PM](https://global.discourse-cdn.com/auth0/original/3X/0/d/0de8dc11137c4d2d3b7ce890a00936c500ae90f0.png)

So I successfully implemented the code here, have my two log in/logout buttons and instead of having the code in app.js . I made a signinpage.

 ![Screenshot 2022-11-23 at 9.26.21 PM](https://global.discourse-cdn.com/auth0/original/3X/4/9/495ba251976e97a1f0df126ff602ced53ac3c117.png)  
My domain and client ID are correct but when I click the button I get this URL : [https://undefined/authorize?scope=openid%20profile%20email&response\_type=code&response\_mode=query&state=OV82SjdyTkRkT2h2QVdhNFdRRjZUQ284QzBiWm4yNG9ra2lkMnJ6SmFUbg%3D%3D&nonce=T2tCb0dycVBNNWhkQjVofnFPSk01SFc0LUVvQkpCZXdVbFBIYmg3aFFOeQ%3D%3D&code\_challenge=am9ScGiU0dg7Q833eXqQR3uLh1usfh59E7y\_xqKiRwI&code\_challenge\_method=S256&auth0Client=eyJuYW1lIjoiYXV0aDAtcmVhY3QiLCJ2ZXJzaW9uIjoiMS4xMi4wIn0%3D](https://undefined/authorize?scope=openid%20profile%20email&response_type=code&response_mode=query&state=OV82SjdyTkRkT2h2QVdhNFdRRjZUQ284QzBiWm4yNG9ra2lkMnJ6SmFUbg%3D%3D&nonce=T2tCb0dycVBNNWhkQjVofnFPSk01SFc0LUVvQkpCZXdVbFBIYmg3aFFOeQ%3D%3D&code_challenge=am9ScGiU0dg7Q833eXqQR3uLh1usfh59E7y_xqKiRwI&code_challenge_method=S256&auth0Client=eyJuYW1lIjoiYXV0aDAtcmVhY3QiLCJ2ZXJzaW9uIjoiMS4xMi4wIn0%3D)  
and it says This site can’t be reached

Check if there is a typo in undefined.

DNS\_PROBE\_FINISHED\_NXDOMAIN

and in the console it says: crbug/1173575, non-JS module files deprecated.

---

<div class="post-metadata">

**Author:** ![oscar.gch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oscar.gch/32/34847_2.png) [@oscar.gch](https://community.auth0.com/u/oscar.gch)\
**Post date:** [December 25, 2022, 11:09am UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056/3 "2022-12-25T11:09:16Z")

</div>

Alright, so here´s what I found after trying for like 4 hours:

1. There is still no Complete Guide to implement Auth0 using React 18 and React-Router V6.

2. React-Router V6 does NOT allow you to have things setup the way the current guide has it:

Because you have to change to and you cannot use in the with React Router V6.

So… this all boils down to the fact that the file protected-route.js inside the auth folder… in the client side… has code that wants things to be in a way(ProtectedRoute) that React Router V6 does not allow.

Solution 1: Use older dependencies versions  
These work:  
“dependencies”: {  
“@auth0/auth0-react”: “^1.11.0”,  
“axios”: “^1.1.2”,  
“react”: “^16.14.0”,  
“react-dom”: “^16.14.0”,  
“react-router-dom”: “^5.2.0”,  
“react-scripts”: “4.0.0”

Solution 2: Implement code that makes it work that you create on your own.

Solution 3: Wait for an Auth0 guide that is fully compatible with React 18 and React Router V6.

I’ve decided to go for solution 1 for the moment, and then… when there is a new guide… I will attempt to migrate. I don’t want to code it on my own because I will probably make a frankenstein solution with a bunch of hacks that will later come back to bite me in the butt when the guide comes out.

---

<div class="post-metadata">

**Author:** ![oscar.gch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oscar.gch/32/34847_2.png) [@oscar.gch](https://community.auth0.com/u/oscar.gch)\
**Post date:** [December 25, 2022, 11:10am UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056/4 "2022-12-25T11:10:41Z")

</div>

Oh, and this part:

crbug/1173575, non-JS module files deprecated.

Has nothing to do with it. That’s something to do with the react scripts but it’s not related to your issue as far as I can tell.

---

<div class="post-metadata">

**Author:** ![oscar.gch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oscar.gch/32/34847_2.png) [@oscar.gch](https://community.auth0.com/u/oscar.gch)\
**Post date:** [December 25, 2022, 11:12am UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056/5 "2022-12-25T11:12:33Z")

</div>

This is the guide I’m refering to, follow it using the dependencies above and it should work. But the downside is you won’t have React 18 hahaha nor React Router V6

> **[The Complete Guide to React User Authentication with Auth0](https://auth0.com/blog/complete-guide-to-react-user-authentication/)**
>
> Learn how to add user authentication to React using Context and Hooks. Learn the core concepts of React authentication.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 16, 2024, 5:59pm UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056/6 "2024-05-16T17:59:17Z")

</div>

Hi team!

We are updating old posts with possible solutions. In the meantime, our team has prepared the documents regarding React v18+ and Router v6.

You can find the docs here [React Authentication By Example: Using React Router 6](https://developer.auth0.com/resources/guides/spa/react/basic-authentication)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 30, 2024, 5:59pm UTC](https://community.auth0.com/t/this-site-can-t-be-reachedcheck-if-there-is-a-typo-in-undefined-please-help/95056/7 "2024-05-30T17:59:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
