DEV Community

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

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.