You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
When
google-mapis imported in a polymer 3 element, it produces the following error:element-mixin.js:362 template getter must return HTMLTemplateElement
Uncaught TypeError: Cannot read property 'api' of undefined
It occurs in chrome.
It can be fixed by:
htmlfrom html-tag.jsFix:
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
Change Polymer({
_template:
[[some html]]}) to
Polymer({
_template: html
[[some html]]})
Had to fix this inside node_modules which cannot be pushed to production.