Preact: Devtools error after release of new React DevTools

Created on 16 Aug 2019  路  6Comments  路  Source: preactjs/preact

Yesterday React released a new React DevTools, https://reactjs.org/blog/2019/08/15/new-react-devtools.html
So now running my preact project with the new tools, i'm getting this error:
I'm still using "preact": "^8.5.1",

backend.js:9 Uncaught (in promise) TypeError: e.getPublicInstance is not a function at h (backend.js:9) at Object.receiveComponent (backend.js:9) at Object.e.<computed> [as receiveComponent] (backend.js:9) at Object.componentUpdated (devtools.js:262) at Object.preact.options.afterUpdate (devtools.js:380) at renderComponent (preact.umd.js:619) at rerender (preact.umd.js:104)

Let me know if you need more information. Thanks

Most helpful comment

FYI: I'm currently working on bringing them into the 8.x release line :tada:

All 6 comments

This PR adds support for the new devtools in Preact X: https://github.com/preactjs/preact/pull/1549

For Preact 8 we haven't decided yet on how we'll tackle the issue yet but we are actively working on it.

oh yes !!! my mistake i searched on issues but not on PR, everything under control

No problem, let's keep this issue open so it's more clear on our radar. Since we still have to decide for Preact 8

@raulmmdev you can use the devtools with Preact 8 like this for now: https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back

FYI: I'm currently working on bringing them into the 8.x release line :tada:

We just released Preact 8.5.2 which fixes this :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k15a picture k15a  路  3Comments

marcosguti picture marcosguti  路  3Comments

mizchi picture mizchi  路  3Comments

skaraman picture skaraman  路  3Comments

kay-is picture kay-is  路  3Comments