小程序引入插件的坑

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_38494372/article/details/81156268

VM399:1 thirdScriptError
sdk uncaught third Error
This application has not registered any plugins yet.
Error: This application has not registered any plugins yet.
at c (dev/WAService.js:19:4219”>http://127.0.0.1:31998/appservice/dev/WAService.js:19:4219)
at _ (dev/WAService.js:19:5714”>http://127.0.0.1:31998/appservice/dev/WAService.js:19:5714)
at http://127.0.0.1:31998/appservice/pages/order/order.js:3:14
at require (dev/WAService.js:19:7304”>http://127.0.0.1:31998/appservice/dev/WAService.js:19:7304)
at http://127.0.0.1:31998/appservice/appservice?t=1532249857754:1060:9
console.error @ VM399:1
(anonymous) @ WAService.js:4
(anonymous) @ WAService.js:4
a @ appservice?t=1532249857754:1038
window.onerror @ VM399:1
appservice?t=1532249857754:1063 Sun Jul 22 2018 16:57:38 GMT+0800 (中国标准时间) page 编译错误
VM399:1 pages/order/order.js 出现脚本错误或者未正确调用 Page()
这里写图片描述
解决方法:
在app.json注册插件
这里写图片描述

这个version 和provider可以在这里找到
这里写图片描述

这里写图片描述

  "plugins": {
    "myPlugin": {
      "version": "1.0.6",
      "provider": "wx5bc2ac602a747594"
    }
  }
展开阅读全文

没有更多推荐了,返回首页