Vue.js [Vue warn]:创建的挂钩中出现错误:“Vue warn”;TypeError:此处“地图”“地图”“核心”“网页包”“导入”“模块”“3”“默认a.a.service未定义”;

Vue.js [Vue warn]:创建的挂钩中出现错误:“Vue warn”;TypeError:此处“地图”“地图”“核心”“网页包”“导入”“模块”“3”“默认a.a.service未定义”;,vue.js,vuejs2,vue-component,heremaps,Vue.js,Vuejs2,Vue Component,Heremaps,heremaps.vue上的我的脚本模板 <div class="here-map"> <div ref="map" v-bind:style="{ width: width + '%', height: height }" style="float: left"></div> <ol v-bind:style="{ width: (100 - wi

heremaps.vue上的我的脚本模板

<div class="here-map">
    <div ref="map" v-bind:style="{ width: width + '%', height: height }" style="float: left"></div>
    <ol v-bind:style="{ width: (100 - width - 5) + '%'}" style="float: right; min-height: 530px; margin-left: 20px; margin-top: 0">
        <li v-bind="directions in directions">
            <p v-html="directions.instruction"></p>
        </li>
    </ol>
</div>
<script>
import H from 'here-maps/mapsjs-core'
import 'here-maps/mapsjs-service'
import 'here-maps/mapsjs-ui'
import 'here-maps/mapsjs-mapevents'    

  • heremaps.vue上的我的脚本js

    <div class="here-map">
        <div ref="map" v-bind:style="{ width: width + '%', height: height }" style="float: left"></div>
        <ol v-bind:style="{ width: (100 - width - 5) + '%'}" style="float: right; min-height: 530px; margin-left: 20px; margin-top: 0">
            <li v-bind="directions in directions">
                <p v-html="directions.instruction"></p>
            </li>
        </ol>
    </div>
    
    <script>
    import H from 'here-maps/mapsjs-core'
    import 'here-maps/mapsjs-service'
    import 'here-maps/mapsjs-ui'
    import 'here-maps/mapsjs-mapevents'    
    
    
    从“此处映射/mapsjs核心”导入H
    导入“此处映射/mapsjs服务”
    导入“此处映射/mapsjs ui”
    导入“此处映射/mapsjs映射事件”
    
    请详细说明您的问题