Cannot read properties of undefined (reading 'TranslateElement')

873 views
Skip to first unread message

Vasco Tareco

unread,
Feb 13, 2022, 1:24:49 PM2/13/22
to Google Cloud Translation API
Hi

I setup the Google translation in my websites but there´s one that is failing with the following error:

Uncaught TypeError: Cannot read properties of undefined (reading 'TranslateElement')
    at googleTranslateElementInit ((index):148:46)
    at e (m=el_main:75:306)

Can you please provide me some help ?

KR

Olu

unread,
Feb 14, 2022, 9:57:49 AM2/14/22
to Google Cloud Translation API
Hello, KR

This error seems to suggest that a variable[in this case, TranslateElement] was probably declared but not been assigned a value. There are a number of things to look at here but I think the first thing is to understand your implementation. How  are you setting up the Google translation on your websites? I suppose you are simply making calls to the Translation API[0][1]?

Please reply with more detailed information about your implementation, so that we can have better understanding of your setup and how we can help.

By the way, I found this issue reported as well on this Stackoverflow link[2], I am not sure if your implementation/setup is similar to what the Customer is doing. Please check the comments, hopefully it helps

Reply all
Reply to author
Forward
0 new messages