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

victorious-library-28522

03/29/2023, 6:02 AM
Is growthbook supported on older browser versions? I have implemented A/B tests using react sdk but it keeps throwing error
globalThis is not defined
on older browsers (eg. Chrome 67) @fresh-football-47124
f

fresh-football-47124

03/29/2023, 6:34 AM
Is that coming from the SDK or the implementation?
v

victorious-library-28522

03/29/2023, 6:38 AM
from the SDK:
/node_modules/@growthbook/growthbook/dist/esm/feature-repository.js
@fresh-football-47124 is there any solution for mitigation ? I tried providing polyfill but it still throws the same error (
globalThis is not defined
)
f

fresh-football-47124

03/31/2023, 4:45 AM
are you sure this is from old browsers not a node version?
v

victorious-library-28522

03/31/2023, 6:20 AM
We are running node version 16. globalThis is supported on version 12 and above. Also tried patching the react sdk version of >=10 to >=12. Still having the same issue
@fresh-football-47124