Closed tariqinaam closed 1 year ago
Hello. Have you seen your App, not the Wits loading screen?
in the log, It success launch App with Wits, and push home.js file then reload app contents.
but As your report, It failed when reload windows.
try to it work well on chrome inspector console tab which connected by Wits.
let iframeElem = document.getElementById('contentHTML');
iframeElem.contentDocument.location.reload(true);
If that was not working, It is not Wits issue, maybe other issue. we will check together.
thank you.
Hello. Have you seen your App, not the Wits loading screen?
in the log, It success launch App with Wits, and push home.js file then reload app contents.
but As your report, It failed when reload windows.
try to it work well on chrome inspector console tab which connected by Wits.
let iframeElem = document.getElementById('contentHTML'); iframeElem.contentDocument.location.reload(true);
If that was not working, It is not Wits issue, maybe other issue. we will check together.
thank you.
Thanks for quick reply. yes, console in vscode shows content is pushed, however emulator failed to locate the package content. reloading via chrome web inspector console command gives same error. After reload command, whole content from source tab disappear. Not exactly sure what causing this. https://www.awesomescreenshot.com/image/38807789?key=aa9d90da167449026a6c502c7bf5726b
Noticed another thing here. Even after the first successful load. index file in content source (web inspector source tab), shows no content. https://www.awesomescreenshot.com/image/38807932?key=b455ef45b9f01b0aab07b5fb14356d8f
Noticed another thing here. Even after the first successful load. index file in content source (web inspector source tab), shows no content. https://www.awesomescreenshot.com/image/38807932?key=b455ef45b9f01b0aab07b5fb14356d8f
Ignore my comment in last reply, i can see index.html content on first load.
Hi :) First, sorry for your inconvenience. When I tried to reproduce what you've experienced. But in my case It works properly... I think I need to look into more....
And then, I refreshed at the chrome inspector with F5. But It's still connected and I could use live reload feature.
At first, I thought the error what you've got might be a problem. "Please install a Chrome browser. Error: connect ECONNREFUSED ::1:51557" Even though I also see the same error message in my side, But It still works....
listening on 4502 a user connected new client connected, id = ZA229zqEdjuexjdwAAAB socket on::::push_request Total File Number : 19 socket on::::watch_request D:\dev\tizen\workspace230411\OfflineClockImage\css\style.css update watch file : /css/style.css Program output : WARNING: Your data are to be sent over an unencrypted connection and could be read by others. pushed style.css 100% 184 B 0KB/s 1 file(s) pushed. 0 file(s) skipped. D:/dev/tizen/workspace230411/OfflineClockImage/css/style.css 4KB/s (184 bytes in 0.039s)
D:\dev\tizen\workspace230411\OfflineClockImage\css\style.css update watch file : /css/style.css Program output : WARNING: Your data are to be sent over an unencrypted connection and could be read by others. pushed style.css 100% 182 B 0KB/s 1 file(s) pushed. 0 file(s) skipped. D:/dev/tizen/workspace230411/OfflineClockImage/css/style.css 3KB/s (182 bytes in 0.051s)
Please install a Chrome browser. Error: connect ECONNREFUSED ::1:51557 Please install a Chrome browser. Error: connect ECONNREFUSED ::1:51558 D:\dev\tizen\workspace230411\OfflineClockImage\css\style.css update watch file : /css/style.css Program output : WARNING: Your data are to be sent over an unencrypted connection and could be read by others. pushed style.css 100% 184 B 0KB/s 1 file(s) pushed. 0 file(s) skipped. D:/dev/tizen/workspace230411/OfflineClockImage/css/style.css 3KB/s (184 bytes in 0.045s)
D:\dev\tizen\workspace230411\OfflineClockImage\css\style.css update watch file : /css/style.css Program output : WARNING: Your data are to be sent over an unencrypted connection and could be read by others. pushed style.css 100% 185 B 0KB/s 1 file(s) pushed. 0 file(s) skipped. D:/dev/tizen/workspace230411/OfflineClockImage/css/style.css 3KB/s (185 bytes in 0.049s)
disconnect, id = ZA229zqEdjuexjdwAAAB a user connected new client connected, id = ealqjCVN0vBD90ovAAAD socket on::::push_request Total File Number : 19 socket on::::watch_request D:\dev\tizen\workspace230411\OfflineClockImage\css\style.css update watch file : /css/style.css Program output : WARNING: Your data are to be sent over an unencrypted connection and could be read by others. pushed style.css 100% 186 B 0KB/s 1 file(s) pushed. 0 file(s) skipped. D:/dev/tizen/workspace230411/OfflineClockImage/css/style.css 3KB/s (186 bytes in 0.052s)
Well... And I'm gonna test it again with mac in a few days. It might take a time. If I figure out something new, I will let you know!
Thanks.
@prozanne @pwsses I have resolved this issue.
For anyone having similar issue with react App, check what router you are using.
I was using React BrowserRouter
and it was causing file path to get lost on reload. Switching it to MemoryRouter
fixed the issue with reloading.
thanks for you help.
@prozanne @pwsses I have resolved this issue. For anyone having similar issue with react App, check what router you are using. I was using React
BrowserRouter
and it was causing file path to get lost on reload. Switching it toMemoryRouter
fixed the issue with reloading. thanks for you help.
Thanks for sharing your solution to all. We should've checked react application environment too. Sorry again for the inconvenience. Have a good day.
Happy coding.
Hi, I have wits running on mac OS with a react tizen custom project. I am trying to use live reload using tizen emulator. On initial run of
wits -s
orwits -w
, it loads the app in emulator. However upon changing a file, app failed to reload with error messaage on emulator sayshere is detail log At the end of this log it says chrome disconnected, however chrome stays connected.