This message was deleted.
# ask-questions
w
This message was deleted.
f
hi Jed. Local like localhost or file://?
d
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
it should work on localhost
ya, I can reproduce that
d
both the dev mode widget and chrome extension?
f
was testing the chrome extension
let me see if jeremy is around
f
Hi Jed. What SDK and framework are you using?
d
React, Next
f
Can you see if
window._growthbook
is defined on the loaded page?
d
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
And you're using GrowthBook from a component and not within middleware, right?
d
Yep, it’s correctly rendering my feature as I’d expect considering my
trackingAttributes
I also see the widget script being loaded
f
The dev mode script is deprecated and replaced by the chrome extension.
d
Gotcha, I’ll remove that. Still do need to figure out the extension though
Really appreciate the help so far
f
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
Well, after updating Chrome it now works
Unfortunately I’m not sure what version I was on before, but appreciate the help
f
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!
142 Views