DEV Community

Cover image for All about routing in React (Part 1) ft. react-router-dom

All about routing in React (Part 1) ft. react-router-dom

MILIND D JAIN on March 08, 2024

Here, in this post we are going to learn about the routing in react applications using react-router-dom v6. React-router-dom is a powerful library...
Collapse
 
ola4987 profile image
Makanjuola

if i change the view of my laptop to mobile and try to make some changes , i am getting this error client.ts:117 [hmr] Failed to reload /src/App.jsx. This could be due to syntax errors or importing non-existent modules. (see errors above)
warnFailedFetch @ client.ts:117
fetchUpdate @ client.ts:470
await in fetchUpdate (async)

(anonymous) @ client.ts:176
handleMessage @ client.ts:174
(anonymous) @ client.ts:91
, but whenever i switch it so full laptop screen , it will load .

Collapse
 
jmilind1234 profile image
MILIND D JAIN

Looks someting related to hot module replacement, can you try restarting of server after you change device from laptop to mobile. @ola4987 . Please let me know if it helps you!

Collapse
 
ola4987 profile image
Makanjuola

thanks for your reply . yes it seems so , but what i do not understand is that it only happens when i resize my screen to mobile, i made a short video recording the challenge that i am facing . but i do not think i can send video to this platform. can i send to your whatsapp or something ?

Thread Thread
 
ola4987 profile image
Makanjuola

i hope you understand my explanation , the issue is not tied to a particular project that i am doing , it is just generally affecting me.

Thread Thread
 
jmilind1234 profile image
MILIND D JAIN

@ola4987 you can send the video to my gmail, jmilind1234@gmail.com.

Thread Thread
 
ola4987 profile image
Makanjuola

thanks sir , i have resolve the issues by downloading an extension to test the self project that i am doing with different phone screen size . thanks sir i really appreciate.

Collapse
 
jmilind1234 profile image
MILIND D JAIN

Please place your valuable suggestions, corrections. 🤝

Collapse
 
ola4987 profile image
Makanjuola

i am having issues with my react , someone should please help me

Collapse
 
jmilind1234 profile image
MILIND D JAIN

Hey @ola4987 , if you don't mind can you share git repo and mention which exact file you were trying to make change into. I would love to help you out If i can.

Kindly drop your git repo details and filename here in comments.

Collapse
 
ola4987 profile image
Makanjuola

the thing is , this is just what i am facing when i am writing code , not that it is tied to some particular project that i am doing .

Collapse
 
ola4987 profile image
Makanjuola

i am currently going crazy and it is no longer funny