In my project using laravel elixir to mix up the JavaScript files.
In forms I have to use main Vue.js element to create forms. Also I have to use vue-google-map template inside parent Vue.js element but it is showing an error?
window.VueGoogleMaps = require('vue2-google-maps');
var app = new Vue({
el: '#participantLocationListApp',
});
HTML:
<div class="panel panel-default card-view panel-refresh" id="participantLocationListApp">
<template>
<gmap-map:center="center" :zoom="1" style="width: 100%; height: 400px"> </gmap-map>
</template>
</div>
Error:
[Vue warn]: Unknown custom element:
<gmap-map>- did you register the component correctly? For recursive components, make sure to provide the "name" option.[Vue warn]: Unknown custom element:
<gmap-info-window>- did you register the component correctly? For recursive components, make sure to provide the "name" option.

You are just declaring the plugin. You have to "use" it, so Vue knows about it.
Also, that
<template>makes no sense, you don't want it there.Here's how it should be:
In the JavaScript code, activate the plugin through
.use():HTML (remove the
<template>):