{"action":"created","issue":{"url":"https://api.github.com/repos/airyland/vux/issues/2228","repository_url":"https://api.github.com/repos/airyland/vux","labels_url":"https://api.github.com/repos/airyland/vux/issues/2228/labels{/name}","comments_url":"https://api.github.com/repos/airyland/vux/issues/2228/comments","events_url":"https://api.github.com/repos/airyland/vux/issues/2228/events","html_url":"https://github.com/airyland/vux/issues/2228","id":276000597,"number":2228,"title":"在现有vue项目中引入vux后import报错","user":{"login":"railgun20001","id":22837283,"avatar_url":"https://avatars2.githubusercontent.com/u/22837283?v=4","gravatar_id":"","url":"https://api.github.com/users/railgun20001","html_url":"https://github.com/railgun20001","followers_url":"https://api.github.com/users/railgun20001/followers","following_url":"https://api.github.com/users/railgun20001/following{/other_user}","gists_url":"https://api.github.com/users/railgun20001/gists{/gist_id}","starred_url":"https://api.github.com/users/railgun20001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/railgun20001/subscriptions","organizations_url":"https://api.github.com/users/railgun20001/orgs","repos_url":"https://api.github.com/users/railgun20001/repos","events_url":"https://api.github.com/users/railgun20001/events{/privacy}","received_events_url":"https://api.github.com/users/railgun20001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-22T09:38:20Z","updated_at":"2017-11-22T10:08:21Z","closed_at":null,"author_association":"NONE","body":"<!-- 随随便便提的问题，连代码格式化也不会的会被随随便便关掉 -->\r\n\r\n<!-- 任何代码问题请首先直接给出清除了业务逻辑的代码，不要浪费大家时间 -->\r\n\r\n<!-- Scroller 组件已经不再维护，请使用社区其他组件，issue 不会处理 -->\r\n\r\n在引入import { Group, Cell } from 'vux'后，控制台报错\r\n```\r\n ERROR  Failed to compile with 2 errors                                                                         \r\n\r\nThese dependencies were not found:\r\n\r\n* !!vue-style-loader!css-loader?{\"minimize\":false,\"sourceMap\":false}!../../../../_vue-loader@13.5.0@vue-loader/lib/style-compiler/index?{\"vue\":true,\"id\":\"data-v-a90fc29c\",\"scoped\":false,\"hasInlineConfig\":false}!px2rem-loader?{\"remUnit\":75}!../../../../_vux-loader@1.1.27@vux-loader/src/after-less-loader.js!less-loader?{\"sourceMap\":false}!../../../../_vux-loader@1.1.27@vux-loader/src/style-loader.js!../../../../_vue-loader@13.5.0@vue-loader/lib/selector?type=styles&index=0&bustCache!./index.vue in ./node_modules/_vux@2.7.4@vux/src/components/cell/index.vue\r\n* !!vue-style-loader!css-loader?{\"minimize\":false,\"sourceMap\":false}!../../../../_vue-loader@13.5.0@vue-loader/lib/style-compiler/index?{\"vue\":true,\"id\":\"data-v-7385d16a\",\"scoped\":false,\"hasInlineConfig\":false}!px2rem-loader?{\"remUnit\":75}!../../../../_vux-loader@1.1.27@vux-loader/src/after-less-loader.js!less-loader?{\"sourceMap\":false}!../../../../_vux-loader@1.1.27@vux-loader/src/style-loader.js!../../../../_vue-loader@13.5.0@vue-loader/lib/selector?type=styles&index=0&bustCache!./index.vue in ./node_modules/_vux@2.7.4@vux/src/components/group/index.vue\r\n\r\nTo install them, you can run: npm install --save !!vue-style-loader!css-loader?{\"minimize\":false,\"sourceMap\":false}!../../../../_vue-loader@13.5.0@vue-loader/lib/style-compiler/index?{\"vue\":true,\"id\":\"data-v-a90fc29c\",\"scoped\":false,\"hasInlineConfig\":false}!px2rem-loader?{\"remUnit\":75}!../../../../_vux-loader@1.1.27@vux-loader/src/after-less-loader.js!less-loader?{\"sourceMap\":false}!../../../../_vux-loader@1.1.27@vux-loader/src/style-loader.js!../../../../_vue-loader@13.5.0@vue-loader/lib/selector?type=styles&index=0&bustCache!./index.vue !!vue-style-loader!css-loader?{\"minimize\":false,\"sourceMap\":false}!../../../../_vue-loader@13.5.0@vue-loader/lib/style-compiler/index?{\"vue\":true,\"id\":\"data-v-7385d16a\",\"scoped\":false,\"hasInlineConfig\":false}!px2rem-loader?{\"remUnit\":75}!../../../../_vux-loader@1.1.27@vux-loader/src/after-less-loader.js!less-loader?{\"sourceMap\":false}!../../../../_vux-loader@1.1.27@vux-loader/src/style-loader.js!../../../../_vue-loader@13.5.0@vue-loader/lib/selector?type=styles&index=0&bustCache!./index.vue\r\n> Listening at http://localhost:8080\r\n```\r\n\r\nbuild/webpack.base.conf.js代码如下\r\n```\r\n'use strict'\r\nconst webpack = require('webpack')\r\nconst path = require('path')\r\nconst utils = require('./utils')\r\nconst config = require('../config')\r\nconst vueLoaderConfig = require('./vue-loader.conf')\r\nconst vuxLoader = require('vux-loader')\r\n\r\nfunction resolve(dir) {\r\n\treturn path.join(__dirname, '..', dir)\r\n}\r\nconst webpackConfig =  {\r\n\tentry: {\r\n\t\tapp: './src/main.js'\r\n\t},\r\n\toutput: {\r\n\t\tpath: config.build.assetsRoot,\r\n\t\tfilename: '[name].js',\r\n\t\tpublicPath: process.env.NODE_ENV === 'production' ?\r\n\t\t\tconfig.build.assetsPublicPath : config.dev.assetsPublicPath\r\n\t},\r\n\tresolve: {\r\n\t\textensions: ['.js', '.vue', '.json'],\r\n\t\talias: {\r\n\t\t\t'vue$': 'vue/dist/vue.esm.js',\r\n\t\t\t'@': resolve('src'),\r\n\t\t\t'zepto': resolve('src/utils/zepto.js'),\r\n\t\t}\r\n\t},\r\n\tmodule: {\r\n\t\trules: [{\r\n\t\t\t\ttest: /\\.vue$/,\r\n\t\t\t\tloader: 'vue-loader',\r\n\t\t\t\toptions: vueLoaderConfig\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttest: /\\.js$/,\r\n\t\t\t\tloader: 'babel-loader',\r\n\t\t\t\tinclude: [resolve('src'), resolve('test')]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttest: /\\.(png|jpe?g|gif|svg)(\\?.*)?$/,\r\n\t\t\t\tloader: 'url-loader',\r\n\t\t\t\toptions: {\r\n\t\t\t\t\tlimit: 10000,\r\n\t\t\t\t\tname: utils.assetsPath('img/[name].[hash:7].[ext]')\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttest: /\\.(mp4|webm|ogg|mp3|wav|flac|aac)(\\?.*)?$/,\r\n\t\t\t\tloader: 'url-loader',\r\n\t\t\t\toptions: {\r\n\t\t\t\t\tlimit: 10000,\r\n\t\t\t\t\tname: utils.assetsPath('media/[name].[hash:7].[ext]')\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttest: /\\.(woff2?|eot|ttf|otf)(\\?.*)?$/,\r\n\t\t\t\tloader: 'url-loader',\r\n\t\t\t\toptions: {\r\n\t\t\t\t\tlimit: 10000,\r\n\t\t\t\t\tname: utils.assetsPath('fonts/[name].[hash:7].[ext]')\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttest: resolve('src/utils/zepto.js'),\r\n\t\t\t\tloader: 'exports-loader?window.$!script-loader'\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tplugins: [\r\n\t\tnew webpack.ProvidePlugin({\r\n\t\t\t$: resolve('src/utils/zepto.js'),\r\n\t\t})\r\n\t]\r\n}\r\nmodule.exports = vuxLoader.merge(webpackConfig, {\r\n\tplugins: ['vux-ui']\r\n  })\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/airyland/vux/issues/comments/346303537","html_url":"https://github.com/airyland/vux/issues/2228#issuecomment-346303537","issue_url":"https://api.github.com/repos/airyland/vux/issues/2228","id":346303537,"user":{"login":"railgun20001","id":22837283,"avatar_url":"https://avatars2.githubusercontent.com/u/22837283?v=4","gravatar_id":"","url":"https://api.github.com/users/railgun20001","html_url":"https://github.com/railgun20001","followers_url":"https://api.github.com/users/railgun20001/followers","following_url":"https://api.github.com/users/railgun20001/following{/other_user}","gists_url":"https://api.github.com/users/railgun20001/gists{/gist_id}","starred_url":"https://api.github.com/users/railgun20001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/railgun20001/subscriptions","organizations_url":"https://api.github.com/users/railgun20001/orgs","repos_url":"https://api.github.com/users/railgun20001/repos","events_url":"https://api.github.com/users/railgun20001/events{/privacy}","received_events_url":"https://api.github.com/users/railgun20001/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T10:08:21Z","updated_at":"2017-11-22T10:08:21Z","author_association":"NONE","body":"@airyland 好了。。。还奇怪啊，并没有使用less啊，谢谢~·~"}}
{"actor":{"display_login":"railgun20001"}}