Preact: TypeError: e.getPublicInstance is not a function

Created on 18 Aug 2019  ·  5Comments  ·  Source: preactjs/preact

As soon as the dev tools are open the preact app blows up.

backend.js:9 Uncaught TypeError: e.getPublicInstance is not a function
    at h (backend.js:9)
    at m (backend.js:9)
    at N (backend.js:9)
    at Object.flushInitialOperations (backend.js:9)
    at backend.js:9
    at <anonymous>:1:225
    at Array.map (<anonymous>)
    at Object.emit (<anonymous>:1:202)
    at i (backend.js:9)
    at backend.js:9
    at Map.forEach (<anonymous>)
    at g (backend.js:9)
    at e (backend.js:1)

I'm hoping someone can help me make sense of it. FWIW, dev tools stopped working with it as well. I haven't changed anything in my project since i initially got it working. project is using preact, preact-compat, mobx-preact,preact/devtools, mobx, mobx-persist, and react-router-dom.

Most helpful comment

We just released Preact 8.5.2 which fixes this :tada:

All 5 comments

This problem also bothers me

This problem also bothers me

It seems like the problem of chrome extension ”React Developer Tools“

We just released Preact 8.5.2 which fixes this :tada:

@marvinhagemeister thank you for swift action. i know it must be difficult having to "react" to what arbitrary changes they make in react/react-devtools.

In case it happens to you, I had to turn off the extension and turn it back on after the update before the error went away. Thanks for the fix!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jescalan picture jescalan  ·  3Comments

paulkatich picture paulkatich  ·  3Comments

kay-is picture kay-is  ·  3Comments

k15a picture k15a  ·  3Comments

matthewmueller picture matthewmueller  ·  3Comments