Ich versuche, meinen Arbeitscode von Google Maps-Initialisierung in Meteor Projekt und zwei Fehler, die Unexpected token <
und initMap is not a function
sind. Der Code der HTML-Datei Ich gebe unten:google maps api 3: wie zu lösen Fehler von "unerwarteten Token <"?
<head>
<title>simple</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> hello}}
{{> info}}
<script src="main.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBNRzOGCsGk5u0VHjDOh_4QyJf4K-Hz5Bw&signed_in=true&libraries=places&callback=initMap"
async defer></script>
</body>
<template name="hello">
<button>Click Me</button>
<p>You've pressed the button {{counter}} times.</p>
</template>
<template name="info">
<h2>Learn Meteor!</h2>
<ul>
<li><a href="https://www.meteor.com/try">Do the Tutorial</a></li>
<li><a href="http://guide.meteor.com">Follow the Guide</a></li>
<li><a href="https://docs.meteor.com">Read the Docs</a></li>
<li><a href="https://forums.meteor.com">Discussions</a></li>
</ul>
</template>
'unerwartetes Token <' wo? Welche Zeile welcher Datei? Ist es in 'main.js?' Der Debugger sollte dir das sagen –