wendux / fly

:rocket: Supporting request forwarding and Promise based HTTP client for all JavaScript runtimes.
https://wendux.github.io/dist/#/language
MIT License
3.9k stars 639 forks source link

mpvue下使用flyio报 dependencies were not found #53

Closed YanYuanFE closed 6 years ago

YanYuanFE commented 6 years ago

image image OS: Ubuntu16.04 node:v9.11.1

wendux commented 6 years ago

入口文件引用不对,请仔细看文档 。 可以参阅#33

YanYuanFE commented 6 years ago

https://github.com/mini-mpvue/mpvue-douban-movie/blob/master/src/utils/request.js,

谢谢解答,想问下这个mpvue项目是也是这样引用入口的,怎么没有报错呢?

wendux commented 6 years ago

这是通过webpack alias 来自动选择的, 可以看这个工程下 webpack.base.conf.js 中相关配置:

    alias: {
      'vue': 'mpvue',
      '@': resolve('src'),
      'flyio': 'flyio/dist/npm/wx',
      'wx': resolve('src/utils/wx')
    }