Closed wiesson closed 4 years ago
Hiya - this was actually just an oversight and should be fixed on master.
The following two changes are what you'll want to copy into your project:
preact/debug
This makes preact-devtools work and fixes the issue in your screenshot.
This fixes an issue where importing an npm dependency that uses React could end up bringing in a copy of the react package.
Closing since I'm fairly certain the above should have things working for you, but please re-open if that's not the case!
@developit, I think this is still showing __source="[object Object]"
in the latest master changes.
It is indeed still showing source and self, still today, more than a year later :-(
I don't know if it's a bug, but I wanted to mention it, maybe someone can enlighten me. When running the development version, I see a lot of [object object]s in the dom tree.
// edit: after a quick google search I found that issue https://github.com/preactjs/preact/issues/1058
I guess it's fine then :)