question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: e.getPublicInstance is not a function

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
marvinhagemeistercommented, Aug 18, 2019

We just released Preact 8.5.2 which fixes this 🎉

2reactions
r3wtcommented, Aug 19, 2019

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

useEffect() TypeError: e is not a function - Stack Overflow
My first assumption is that you are not really meaning to return from the useEffect , but were mis-using the short hand syntax...
Read more >
JQXLite is not a function (using react) - Forums - jQWidgets
Hi, I am trying out jqwidgets using react. Encounter TypeError: JQXLite is not a function. Please assist, thanks. Below how i the error...
Read more >
reactstrap - UNPKG
Tether = f()}})(function(){var define,module,exports;return (function e(t,n ... new TypeError('Super expression must either be null or a function, not ' + ...
Read more >
Office of Data Governance and Transparency - Oregon GEO
getPublicInstance ())}}function s(e){return r() ... r=n(49);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t ...
Read more >
React Art and Paths.js - Code Daily
Surface, Shape = ReactArt.Shape, Path = require("paths-js/path"); var Demo = React.createClass({ getInitialState: function () { return { to: { x: 30, y: 50,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found