swr-devtools icon indicating copy to clipboard operation
swr-devtools copied to clipboard

Empty extension

Open semoal opened this issue 2 years ago ā€¢ 27 comments

Hi!

I'm using latest Nextjs, with 2.0.0-beta.6 of SWR and the extension never displays anything.

Do you know how I could debug this?

semoal avatar Aug 24 '22 14:08 semoal

@semoal Thanks! That's weird šŸ¤” Which browser extension do you use? Chrome or Firefox?

Can you see the SWR panel and the following message? image

You can try debugging on your local environment as the following. https://github.com/koba04/swr-devtools/blob/main/CONTRIBUTING.md

koba04 avatar Aug 25 '22 14:08 koba04

Hi there,

I am seeing the same issue with the Chrome extension and SWR 2.0.0. I have tried wrapping it in a <SWRDevTools> component at well, but it didn't help. The firefox extension does work though. Thanks!

kristojorg avatar Dec 20 '22 13:12 kristojorg

@kristojorg What version of SWRDevTools are you using? What about switching tabs in DevTools or reloading a page while opening SWRDevTools panel?

koba04 avatar Dec 20 '22 14:12 koba04

I was using latest (installed today) and tried new tabs and also reloading the page and hard reloading the page while the devtools panel was open

kristojorg avatar Dec 20 '22 16:12 kristojorg

Same here, SWR v2.0.3, latest chrome 109.0.5414.119 it says Open SWRDevTools on the page using SWR.

AndreyMarchuk avatar Feb 04 '23 03:02 AndreyMarchuk

Could anyone try SWRDevTools on Firefox instead?

koba04 avatar Feb 09 '23 06:02 koba04

I have the same problem: Chrome always only shows Open SWRDevTools on the page using SWR. Firefox on the other hand works like a charm :)

jBuchholz590 avatar Apr 06 '23 14:04 jBuchholz590

Same here Chrome Version 111.0.5563.146 (Official Build) (arm64). I'll install and wrap my app in SWRDevTools since there was mention that it doesn't affect performance even if its included in the production bundle.

tomzacchia avatar Apr 14 '23 03:04 tomzacchia

@tomzacchia What version's SWR are you using? If you are using SWR v2.x, you don't have to wrap your application with SWRDevTools.

koba04 avatar Apr 14 '23 04:04 koba04

@koba04 i installed latest. I opened the devtools while on the demo page and the extension fallsback to the default message

Open SWRDevTools on the page using SWR.

tomzacchia avatar Apr 14 '23 14:04 tomzacchia

I noticed that when I switched chrome profiles to my personal (non work) profile, the extension started working properly. There must be some restriction on my work profile stopping it from functioning.

kristojorg avatar May 01 '23 12:05 kristojorg

Thanks! That's helpful šŸ‘

I noticed that when I switched chrome profiles to my personal (non work) profile, the extension started working properly. There must be some restriction on my work profile stopping it from functioning.

koba04 avatar May 01 '23 13:05 koba04

+1 on this issue

mnik01 avatar Oct 13 '23 15:10 mnik01

Is there a solution?

AhmedBaset avatar Oct 29 '23 22:10 AhmedBaset

Any updates on this one?

jackirvine97 avatar Nov 04 '23 17:11 jackirvine97

Is project not maintained anymore? Can we priotitaze investigationg of this issue?

mnik01 avatar Nov 06 '23 06:11 mnik01

Is project not maintained anymore?

No.

I haven't reproduced this yet, so any reproduction case is helpful.

koba04 avatar Nov 07 '23 15:11 koba04

Same here. Doesn't work in Chrome, but works in Firefox.

visortelle avatar Nov 21 '23 10:11 visortelle

Same problem here šŸ™ Chrome Version 119.0.6045.160 (Official Build) (64-bit)

tstanciu avatar Nov 25 '23 02:11 tstanciu

Any resolution?

yarinsa avatar Nov 26 '23 12:11 yarinsa

I haven't reproduced this yet, so any reproduction case is helpful.

Hey @koba04 What do you expect us to provide as reproduction.

We just open the devtools normally then it's blank.

I can share my screen with you using AnyDisk or similar app if that's helpful

AhmedBaset avatar Nov 26 '23 14:11 AhmedBaset

A CodeSandbox project to reproduce this is helpful.

koba04 avatar Nov 26 '23 15:11 koba04

A CodeSandbox project to reproduce this is helpful.

The issue is not related to swr itself, but rather to the devtools

I believe CSB won't reproduce anyway.

AhmedBaset avatar Nov 26 '23 15:11 AhmedBaset

Does this happen on https://swr-devtools.vercel.app/ ?

koba04 avatar Nov 26 '23 15:11 koba04

Does this happen on https://swr-devtools.vercel.app/ ?

No

image

But

image

AhmedBaset avatar Nov 26 '23 16:11 AhmedBaset

https://github.com/koba04/swr-devtools/blob/b22be75efa180a3155c3d08f470bcd5f616c3f70/packages/swr-devtools-panel/src/components/SWRDevToolPanel.tsx#L131-L135

AhmedBaset avatar Nov 26 '23 16:11 AhmedBaset

Iā€™m not sure the difference between the apps, so I need an app to reproduce it.

koba04 avatar Nov 27 '23 12:11 koba04