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

  • 18 January 2024
  • 0 replies

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!