Skip to main content
Question

Amplitude.Types.LogLevel constants not defined in my Javascript code


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: {
 

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings