website icon indicating copy to clipboard operation
website copied to clipboard

error in REPL

Open xtuc opened this issue 5 years ago • 4 comments

I can't load the REPL and I'm seeing in the console

TypeError: Cannot read property 'isEnabled' of undefined
    at t.value (repl.js:1)
    at m (react-dom.production.min.js:129)
    at beginWork (react-dom.production.min.js:136)
    at e (react-dom.production.min.js:168)
    at f (react-dom.production.min.js:169)
    at A (react-dom.production.min.js:175)
    at t (react-dom.production.min.js:174)
    at x (react-dom.production.min.js:173)
    at y (react-dom.production.min.js:172)
    at D (react-dom.production.min.js:171)

xtuc avatar Apr 27 '20 09:04 xtuc

@xtuc It is a known bug due to miss matching state shape between local storage and the sources. As a workaround, you can clear site storage from the devTools.

JLHwung avatar Apr 27 '20 12:04 JLHwung

Ok, thanks.

xtuc avatar Apr 27 '20 13:04 xtuc

Are we able to clear local storage for the user upon an error like this?

hzoo avatar Apr 27 '20 16:04 hzoo

@hzoo Yeah we should check the shape before error is thrown.

JLHwung avatar Apr 27 '20 16:04 JLHwung