Skip to main content

Using the Browser SDK 2.0 and in my amplitude.init call I’m trying to set the logger level using the constant amplitude.Types.LogLevel.Debug but I get the following error in the console:

Uncaught TypeError: Cannot read properties of undefined (reading 'LogLevel')

Did I miss some step to be able to see the types constants when setting up?

This is the start of my amplitude.init call:

    amplitude.init(apiKey, userId, {
        logLevel: amplitude.Types.LogLevel.Debug,
        defaultTracking: {
 

Be the first to reply!

Reply