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
Create instance of Optimizely with sdkKey (function createInstance) and without a datafile
What I expected to happen
As it says in the docs, the param datafile is not necessary if sdkKey is present (and vice versa)
What actually happened
The enums.ERROR_MESSAGES.NO_DATAFILE_SPECIFIED ("No datafile specified. Cannot start optimizely.") is thrown. Even though this doesn't cause the creation to break, it throws an error to the console (that my company has suppressed using a combination of a custom logger and custom error handling).
What I wanted to do
Create instance of Optimizely with sdkKey (function
createInstance
) and without a datafileWhat I expected to happen
As it says in the docs, the param datafile is not necessary if sdkKey is present (and vice versa)
What actually happened
The
enums.ERROR_MESSAGES.NO_DATAFILE_SPECIFIED
("No datafile specified. Cannot start optimizely.") is thrown. Even though this doesn't cause the creation to break, it throws an error to the console (that my company has suppressed using a combination of a custom logger and custom error handling).Steps to reproduce
@optimizely/optimizely-sdk
version: 4.3.1Browser and version: Chrome
node
version: 14.6.0npm
version: 6.14.7The text was updated successfully, but these errors were encountered: