收藏
回答

请问小程序引入腾讯地图的sdk报错是什么原因?(萌新求助)

在index.js下引入

var QQMapWX = require('../../libs/qqmap-wx-jssdk.js');

报错:

WAService.js:1 Uncaught Error: module "pages/new-order-submit/address/qqmap-wx-jssdk.js" is not defined

    at require (WAService.js:1)

    at WAService.js:1

    at map.js? [sm]:3

    at require (WAService.js:1)

    at <anonymous>:152:7

    at doWhenAllScriptLoaded (appservice?t=1594014875494:1776)

    at appservice?t=1594014875494:1613

    at HTMLScriptElement.t.onload (<anonymous>:1:20702)

回答关注问题邀请回答
收藏

1 个回答

  • APPLE
    APPLE
    07-27

     "pages/new-order-submit/address/qqmap-wx-jssdk.js" is not defined

    是不是相对路径错了,还在pages/目录下,试一下'../../../libs/qqmap-wx-jssdk.js

    07-27
    有用 1
    回复
登录 后发表内容
问题标签