[Vue警告]:创建的挂钩中出现错误:“ TypeError:here_maps_mapsjs_core__WEBPACK_IMPORTED_MODULE_3 ___ default.a.service未定义”

时间:2020-11-12 12:31:09

标签: 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 - 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>

heremaps.vue上的我的脚本js

<script>
import H from 'here-maps/mapsjs-core'
import 'here-maps/mapsjs-service'
import 'here-maps/mapsjs-ui'
import 'here-maps/mapsjs-mapevents'    

0 个答案:

没有答案