https://www.growthbook.io/ logo
d

dry-knife-80930

02/16/2022, 4:40 AM
Hi! I’m unable to see either the dev mode widget, or the GrowthBook Chrome Extension dev tools in my browser after installing the react growthbook SDK and creating an experiment for my app. I’ve also double checked that the dev mode script is loaded in my browser. Will either this dev mode widget or chrome extension work for locally served sites (I’m currently in the development process)?
f

fresh-football-47124

02/16/2022, 4:41 AM
hi Jed. Local like localhost or file://?
d

dry-knife-80930

02/16/2022, 4:42 AM
like localhost. Growthbook is also correctly showing a feature on the page where I am attempting to load the script and test the extension
f

fresh-football-47124

02/16/2022, 4:42 AM
it should work on localhost
ya, I can reproduce that
d

dry-knife-80930

02/16/2022, 4:45 AM
both the dev mode widget and chrome extension?
f

fresh-football-47124

02/16/2022, 4:46 AM
was testing the chrome extension
let me see if jeremy is around
f

future-teacher-7046

02/16/2022, 4:49 AM
Hi Jed. What SDK and framework are you using?
d

dry-knife-80930

02/16/2022, 4:49 AM
React, Next
f

future-teacher-7046

02/16/2022, 4:50 AM
Can you see if
window._growthbook
is defined on the loaded page?
d

dry-knife-80930

02/16/2022, 4:51 AM
Copy code
console.log(window._growthbook)

GrowthBook {_trackedExperiments: Set(0), debug: false, subscriptions: Set(1), assigned: Map(0), _renderer: ƒ, …}
assigned: Map(0) {size: 0}
context: {features: {…}, attributes: {…}}
debug: false
subscriptions: Set(1) {ƒ}
_attributeOverrides: {}
_forcedFeatureValues: Map(0) {size: 0}
_renderer: () => { setRenderCount(v => v + 1); }
_trackedExperiments: Set(0) {size: 0}
[[Prototype]]: Object
Probably what’s expected
f

future-teacher-7046

02/16/2022, 4:52 AM
And you're using GrowthBook from a component and not within middleware, right?
d

dry-knife-80930

02/16/2022, 4:53 AM
Yep, it’s correctly rendering my feature as I’d expect considering my
trackingAttributes
I also see the widget script being loaded
f

future-teacher-7046

02/16/2022, 4:55 AM
The dev mode script is deprecated and replaced by the chrome extension.
d

dry-knife-80930

02/16/2022, 4:56 AM
Gotcha, I’ll remove that. Still do need to figure out the extension though
Really appreciate the help so far
f

future-teacher-7046

02/16/2022, 4:58 AM
In the console in devtools, you should see a "top" dropdown. Can you select the GrowthBook Dev Tools extension and see if there are any errors?
d

dry-knife-80930

02/16/2022, 5:02 AM
Well, after updating Chrome it now works
Unfortunately I’m not sure what version I was on before, but appreciate the help
f

future-teacher-7046

02/16/2022, 5:12 AM
I've noticed when Chrome has a pending update for a while, random things start to break. Don't know if that was the cause or something else. Glad it's working now though!
3 Views