Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Solid not detected" against Stackblitz demo on Chrome on Linux #266

Open
lourot opened this issue Oct 3, 2023 · 5 comments
Open

"Solid not detected" against Stackblitz demo on Chrome on Linux #266

lourot opened this issue Oct 3, 2023 · 5 comments

Comments

@lourot
Copy link

lourot commented Oct 3, 2023

I have opened the Stackblitz demo and followed the instructions:

// now to use the extension open the playground page in a new tab
// e.g. https://soliddevtoolsdemo-pd2g--5173.local-credentialless.webcontainer.io/
// open the devtools and a "Solid" panel should appear
// try refreshing if it doesn't work

// if you don't have the devools installed, here is the link:
// https://chrome.google.com/webstore/detail/solid-devtools/kmcfjchnmmaeeagadbhoofajiopoceel

Screenshot from 2023-10-03 18-06-20

The extension only says "Solid not detected". Other extensions are disabled. The console shows

Uncaught TypeError: O.createRoot is not a function
    at Hn (debugger.ts-2ca0ccc4.js:1:6771)
    at debugger.ts-2ca0ccc4.js:64:12559

Solid Devtools 0.27.7
Chrome 117.0.5938.132
Ubuntu 22.10

Any help appreciated, thanks a lot!

@lourot
Copy link
Author

lourot commented Oct 3, 2023

Actually now after having retried several times I do see

* Solid detected
* Solid development mode detected
* Solid Devtools setup detected

but I can't find any Solid tab in Chrome's developer tools.

The service worker log only says

solid-devtools Background script working.

@lourot
Copy link
Author

lourot commented Oct 3, 2023

And after refreshing the page, I'm back at "Solid not detected".

@kauderk
Copy link

kauderk commented Dec 11, 2023

Problem at "solid-devtools": "^0.27.1" but fixed at "solid-devtools": "^0.29.2", please update the Stackblitz Demo

This interface must have changed the createRoot function location.

var SolidApi = globalThis.SolidDevtools$$;
var solid_api_default = SolidApi;
...
...
var createInternalRoot = (fn, detachedOwner) => {
  InternalRootCount++;
  const r = solid_api_default.createRoot((dispose) => {
//                               ^^^
    solid_api_default.getOwner().isInternal = true;
    return fn(dispose);
  }, detachedOwner);
  InternalRootCount--;
  return r;
};

And here is the error

debugger.ts-fea24b99.js:434 Uncaught TypeError: solid_api_default.createRoot is not a function
    at createInternalRoot (debugger.ts-fea24b99.js:434:31)
    at debugger.ts-fea24b99.js:1810:14
createInternalRoot @ debugger.ts-fea24b99.js:434
(anonymous) @ debugger.ts-fea24b99.js:1810

@apuatcfbd
Copy link

In Solid Start (0.4.10) project. The extension says Solid is detected & following shows up in console

🚧 solid-devtools is in early development! 🚧
Please report any bugs to https://github.com/thetarnav/solid-devtools/issues

but there's no Solid tab in the (chrome) devtools

@aquaductape
Copy link

aquaductape commented Apr 19, 2024

@lourot
For the StackBlitz demo, you'll need to open the preview in new tab for extension to detect project and run.
Screenshot 2024-04-19 at 1 48 37 PM

but there's no Solid tab in the (chrome) devtools

@apuatcfbd The solution to reveal the tab is making sure that your devtools package is the exact same version number as the extension.

Currently the extension is 0.30.0, so update the package to 0.30.0 without any version flags.

"solid-devtools": "0.30.0"

Thankfully, recent version of extension reminds you of that. Here in my example project I installed the latest devtools package version which is 0.30.1, but the extension tells me it expects to use 0.30.0. So I should downgrade my devtools package to that version if the extension doesn't work.

Screenshot 2024-04-19 at 1 53 19 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants