Expected Behavior
No error
Current Behavior
[Amplitude] TypeError: Cannot read properties of undefined (reading 'save') in browser console in below line.
- e._useOldCookie ? e.cookieStorage.set(e.options.cookieName + e._storageSuffix, t) : e._metadataStorage.save(t)
Important
But after logging an event ex. amplitude.getInstance().logEvent('testevent', { type: 'local' }); then if amplitude.setOptOut(true/false) called there is no error!
Steps to Reproduce
- initialize amplitude.
- Try to set amplitude.setOptOut(true/false)
Environment