小程序引入插件的坑

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()
小程序引入插件的坑_第1张图片
解决方法:
在app.json注册插件
小程序引入插件的坑_第2张图片

这个version 和provider可以在这里找到
小程序引入插件的坑_第3张图片

小程序引入插件的坑_第4张图片

  "plugins": {
    "myPlugin": {
      "version": "1.0.6",
      "provider": "wx5bc2ac602a747594"
    }
  }

你可能感兴趣的:(前端开发,小程序)