收藏
回答

更新最新的开发工具后控制台报(define,require)2个错误,大神帮忙看看?

今天升级了开发工具后,控制台报如下2条错误,define,require'

modification of global variable 'define' is not allowed when using plugins at app.json.

modification of global variable 'require' is not allowed when using plugins at app.json

我的app.json配置如下,没升级前控制台不报错。

{
  "pages": [
    "page/tab_bar/home/index",
    "page/API/login/index",
    "page/tab_bar/apcofnig/index",
    "page/tab_bar/order/index",
    "page/tab_bar/activity/index",
    "page/component/registe/index",
    "page/component/adduser/index",
    "page/component/cominfo/index",
    "page/API/evaluate/index",
    "page/API/message/index",
    "page/API/saver/index",
    "page/component/usercommnice/index",
    "page/component/addcard/index",
    "page/component/getcard/index",
    "page/component/withdrawlog/index",
    "page/component/addzfb/index"
  ], 
  "usingComponents": {
    "floatingbtn": "/page/component/floating-button/index",
    "van-steps": "/van-dist/steps/index",
    "activity-steps": "/van-dist/activity-steps/index",
    "navBar":"/page/component/navBar/navBar",
    "evalistem":"/page/component/evalitme/index"
  },
  "window": {
    "navigationStyle":"custom",
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "xxx集团",
    "navigationBarBackgroundColor": "#fbf9fe",
    "backgroundColor": "#fbf9fe"
  },
  "useExtendedLib": {
    "weui": true
  },
  "tabBar": {
    "color": "#9A9A9A",
    "selectedColor": "#3cc51f",
    "borderStyle": "black",
    "backgroundColor": "#ffffff",
    "list": [
      {
        "pagePath": "page/tab_bar/home/index",
        "iconPath": "/image/tab-bar/runicon.png",
        "selectedIconPath": "/image/tab-bar/runicons.png",
        "text": "进度"
      },
      {
        "pagePath": "page/tab_bar/order/index",
        "iconPath": "/image/tab-bar/order.png",
        "selectedIconPath": "/image/tab-bar/orders.png",
        "text": "订单"
      },
      {
        "pagePath": "page/tab_bar/activity/index",
        "iconPath": "/image/tab-bar/recomde.png",
        "selectedIconPath": "/image/tab-bar/recomdes.png",
        "text": "推荐"
      },
      {
        "pagePath": "page/tab_bar/apcofnig/index",
        "iconPath": "/image/tab-bar/my.png",
        "selectedIconPath": "/image/tab-bar/mys.png",
        "text": "我的"
      }
    ]
  },
  "networkTimeout": {
    "request": 20000,
    "connectSocket": 20000,
    "uploadFile": 20000,
    "downloadFile": 20000
  },
  "plugins": {
    "routePlan": {
      "version": "1.0.11",
      "provider": "wx50b5593e81dd937a"
    }
  },
  "permission": {
    "scope.userLocation": {
      "desc": "位置信息用于,导航到xxx公司"
    }
  },
  "debug": true,
  "sitemapLocation": "sitemap.json"
}
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签