You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReferenceError setTimeout is not defined ReferenceError: setTimeout is not defined%0A at e.onReady (main.js:1:84427)%0A at new e (main.js:1:28336)%0A at e.createUserContext (main.js:1:84961)%0A at main.js:1:93456%0A at Generator.next ()%0A at main.js:1:461%0A at new Promise ()%0A at a (main.js:1:206)%0A at jr (main.js:1:92339)
I can see that you pass shouldIdentifyUser as true to createUserContext all the time.
And another function shouldIdentifyUser as false createInternalUserContext, is private, so for the time being is it ok to use createInternalUserContext and to suppress typescript?
Is there an existing issue for this?
SDK Version
5.3.0
Current Behavior
leads to
ReferenceError setTimeout is not defined ReferenceError: setTimeout is not defined%0A at e.onReady (main.js:1:84427)%0A at new e (main.js:1:28336)%0A at e.createUserContext (main.js:1:84961)%0A at main.js:1:93456%0A at Generator.next ()%0A at main.js:1:461%0A at new Promise ()%0A at a (main.js:1:206)%0A at jr (main.js:1:92339)
Expected Behavior
Works same as before
Steps To Reproduce
SDK Type
Edge/Lite
Node Version
No response
Browsers impacted
No response
Link
No response
Logs
No response
Severity
No response
Workaround/Solution
The cause of this behavior I think is: calling onReady
javascript-sdk/lib/optimizely_user_context/index.ts
Line 67 in 75418da
because stack trace pointed to this
javascript-sdk/lib/optimizely/index.ts
Line 1407 in 75418da
I can see that you pass shouldIdentifyUser as true to createUserContext all the time.
And another function shouldIdentifyUser as false createInternalUserContext, is private, so for the time being is it ok to use createInternalUserContext and to suppress typescript?
This approach works fine
Recent Change
No response
Conflicts
No response
The text was updated successfully, but these errors were encountered: