Skip to content

[Amplitude] TypeError: Cannot read properties of undefined (reading 'save') in browser console #615

@Stephen-Neel

Description

@Stephen-Neel

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

  1. initialize amplitude.
  2. Try to set amplitude.setOptOut(true/false)

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions