bastislack / highline-freestyle

Webapp for Highline Freestyle
GNU General Public License v3.0
10 stars 9 forks source link

Running dev in Chrome doesn't work #243

Closed Felix-Hmpl closed 1 year ago

Felix-Hmpl commented 1 year ago

When I run npm run dev and access app via chrome, I get the following error message: image

It says "inkognito mode", but I am using it the regular way. My Chrome version: 111.0.5563.65 (Offizieller Build) (64-Bit)

In Edge, everything works fine though

JulianDietzel commented 1 year ago

Not a direct solution but something closely related: The "Unfortunatly this App does not work in incognito mode, try to disable it" message was a fix to an earlier issue where the page crashed when I tried opening it in incognito mode. Since the issue arose from Dexie (the database module) not being able to function in incognito mode, the solution was not to fix the problem (since that doesn't really seem possible) but point the user to what the problem probably is. The message is only shown if a certain type of error (error.name === "DatabaseClosedError") crashes the page (implemented here in ErrorFallback.js).

I have had the message come up while not in incognito mode, too, so the current check for whether or not to show the message might not be precise enough. For the moment I would suggest just changing it to something like "This problem is often caused by attempting to using the App in incognito mode. Unfortunately the App does not support this."

But what seeing the message tells us is, that the problem is most probably database related. Have you tried deleting the IndexDB in your Chrome Browser? And could you perhaps share the console log, if there is one, when the error occurs.

weberax commented 1 year ago

I think this is based on some database corruption (no idea when it actually happened and what caused it), like some other errors. Resetting the App like described https://github.com/bastislack/highline-freestyle/issues/224#issuecomment-1694383128 should fix it. Is this still a bug @Felix-Hmpl ? We can reopen the issue if it still occurs