Ask Your Question
0

When trying to add a Google Maps API key in Ionic 5, why am I receiving a TypeError message stating that the 'HTMLElement' construction has failed and to use the 'new' operator?

asked 2023-06-10 17:08:06 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-10 17:38:01 +0000

lalupa gravatar image

This error can occur if you are trying to directly assign a value to an HTML element property instead of using the 'new' operator to create the element first. To resolve this error, you should ensure that you are creating any necessary HTML elements using the 'new' operator before attempting to assign values to their properties. Alternatively, you can use ionic-native/google-maps to add a Google Maps component without the need for an API key.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-10 17:08:06 +0000

Seen: 18 times

Last updated: Jun 10 '23