[Amplitude] Invalid eventType input type. Expected string but received undefined
Here is the stackTrace:
cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:8 Uncaught TypeError: Cannot read property 'replace' of undefined
at a (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:8)
at o (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:8)
at t.n.map (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:1)
at t.<computed> [as standardEvents] (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:2)
at t.f.track (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:7)
at track (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:1)
at cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:1
at u (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:3)
at c (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:3)
at t.n.flush (cdn.segment.com/analytics.js/v1/jExWYocq8leIbsvVJRF9eymTCah0P4qr/analytics.min.js:1)
Hello team,
I get a strange error at the first
Page Datalayer
in my app.My application is a Vue CLI 2.6 with Typescript.
I send event with the following:
eventName
is a string likeundefined_event
or any other custom string.payload
is a key-value pair dictionary which may containnull
value.My code to send the
Page Datalayer
:Here is the warning I get:
[Amplitude] Invalid eventType input type. Expected string but received undefined
Here is the stackTrace:
My events have the following data structure:
I guess you will need further information so feel free to ask
Many thanks