Open astoilkov opened 1 year ago
interesting the overlay package is importing the setup, so it should always be available: https://github.com/thetarnav/solid-devtools/blob/main/packages/overlay/src/index.tsx#L1 Maybe the import got removed by the bundler for some reason? you could try adding that import manually I'm kinda loading the app asynchronously in my playground too, so it shouldn't be an issue: https://github.com/thetarnav/solid-devtools/blob/main/examples/sandbox/src/index.ts
Ok, yes, you are right. Adding import '@solid-devtools/debugger/setup'
in the entry file did work.
If you decide you can close this.
Now the useLocator()
doesn't work. I debugged it and registerComponent()
is never called and ComponentMap
is empty. Should I open a new issue for this?
The error is thrown regardless of the fact I call
attachDevtoolsOverlay()
. I don't callattachDevtoolsOverlay()
in the entry file because DevTools is blank and doesn't work.We load the app async in the entry file, something like:
Also, worth mentioning:
useLocator()
doesn't work at all (couldn't make it work)logger
work as well. if i callattachDevtoolsOverlay()
in the root it works, but then DevTools is blank