0
Why I can't see bugs in console?
I've uploaded my code public to test it https://code.sololearn.com/WEypBr2uwDXf 2 people commented that there is a bug in line 23, can't assign to undefined but I can't see anything in the console and the code is working 100% fine with me even with strict mode! https://prnt.sc/1pxayc5
13 Answers
+ 5
It is not exactly an Android bug, I think, but it is rather just the fact that different environments handle web codes differently â like different browsers or app versions.
I tested on Android, too.
After I had put your js inside
window.onload = () => {
// here goes your js....
}
it seemed to work.
+ 1
That seems to be it. I just tried on the website and there it works without throwing an error. In the app apart from the error message, clicking on the monster has no effect.
+ 1
I'm using the android version. Maybe it's a bug in the app.
+ 1
If You Want All the Bugs, You Can Download (Copy All The Code from Sollearn and paste it in an index.html file). Then, If You Have VS Code,
You Can Debug the index.html File...
0
When I run it it doesn't show that error, but a different one:
Uncaught TypeError: Cannot set property 'value' of null
Line: 27
0
How can you see this error?
0
It just shows up at the bottom of the screen.
0
nothing there is console!
0
Does it show when you click on the three dots in the top right and choose "Show Console"?
0
I've already attached a screenshot of the console https://prnt.sc/1pxayc5 and as you can see there is nothing
0
Maybe the difference is between the website and the app. I'm using the app.
0
I've already tried from my iPhone, it's working without any errors too. I don't know
0
yeah it seems android bug, I'll try to give it a look.